From 3c7b85d8355c64dec5b4ce011753196d53774103 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 11 Jan 2025 10:36:20 +0100 Subject: Added PIDFile --- config.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'config.cpp') diff --git a/config.cpp b/config.cpp index f8bf89c..d0a7671 100644 --- a/config.cpp +++ b/config.cpp @@ -19,6 +19,8 @@ std::string config_filename = "click.cfg"; fs::path click_data_filename = "media/click.s16le"; +const std::string programname = "click"; + Config::Config(int argc, char** argv): m_argv(argc) { @@ -161,3 +163,9 @@ std::filesystem::path Config::get_click_data_filename() const { return fs::path{m_argv[0]}.parent_path() / click_data_filename; } + +std::string Config::get_programname() const +{ + return programname; +} + -- cgit v1.2.3