deskflow/src/lib/gui/dotenv.h
sithlord48 1085df54ed refactor: Reuse compliance
build files and documentation: MIT
  images / sources: GPL-2.0-only
  breeze icons: LGPL-2.0-only
  Microsoft MSM file, vc redist license
2025-01-27 17:05:47 -05:00

22 lines
510 B
C++

/*
* Deskflow -- mouse and keyboard sharing utility
* SPDX-FileCopyrightText: (C) 2024 Symless Ltd.
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
*/
#pragma once
#include <QString>
namespace deskflow::gui {
const QString kDefaultEnvFilename = ".env";
/**
* @brief Loads environment variables from a .env file.
*
* First checks current dir for .env, then looks in the app dir.
*/
void dotenv(const QString &filename = kDefaultEnvFilename);
} // namespace deskflow::gui