aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-12-28 22:41:44 +0100
committerdec05eba <dec05eba@protonmail.com>2024-12-28 22:46:42 +0100
commit3c3e165eb76c4f472212c0fe7215b7ea9cb70a45 (patch)
tree0b6f2df562c913e318209dfdadc25d8b587f5a9d /src
parent5b7b8f8f8c89f8754458916870d63353a4e46f09 (diff)
Mention that the program can only be started on system startup in settings on systemd. Have to launch it manually on other systems
Diffstat (limited to 'src')
-rw-r--r--src/Overlay.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/Overlay.cpp b/src/Overlay.cpp
index 1c7a54c..ec6421c 100644
--- a/src/Overlay.cpp
+++ b/src/Overlay.cpp
@@ -983,10 +983,15 @@ namespace gsr {
if(exit_status == 0)
return;
- if(enable)
- show_notification("Failed to add GPU Screen Recorder to system startup", 3.0, mgl::Color(255, 0, 0), mgl::Color(255, 0, 0), NotificationType::NONE);
- else
- show_notification("Failed to remove GPU Screen Recorder from system startup", 3.0, mgl::Color(255, 0, 0), mgl::Color(255, 0, 0), NotificationType::NONE);
+ if(exit_status == 127) {
+ if(enable)
+ show_notification("Failed to add GPU Screen Recorder to system startup.\nThis option only works on systems that use systemd.\nYou have to manually add gsr-ui to system startup on systems that uses another init system.", 10.0, mgl::Color(255, 0, 0), mgl::Color(255, 0, 0), NotificationType::NONE);
+ } else {
+ if(enable)
+ show_notification("Failed to add GPU Screen Recorder to system startup", 3.0, mgl::Color(255, 0, 0), mgl::Color(255, 0, 0), NotificationType::NONE);
+ else
+ show_notification("Failed to remove GPU Screen Recorder from system startup", 3.0, mgl::Color(255, 0, 0), mgl::Color(255, 0, 0), NotificationType::NONE);
+ }
};
page_stack.push(std::move(settings_page));
};