summaryrefslogtreecommitdiffhomepage
path: root/config.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2025-01-11 10:36:20 +0100
committerRoland Reichwein <mail@reichwein.it>2025-01-11 10:36:20 +0100
commit3c7b85d8355c64dec5b4ce011753196d53774103 (patch)
treeb350ef977987dd5e4155ae71d2c836a762225d56 /config.cpp
parentaa210ed8a27387882fc7fd0dcd7cf961a9adc88f (diff)
Added PIDFile
Diffstat (limited to 'config.cpp')
-rw-r--r--config.cpp8
1 files changed, 8 insertions, 0 deletions
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;
+}
+