Root does not help with XDG variables

pull/10/head
Werner Sembach 3 years ago
parent 5d2875e2b0
commit 152dffd4b3

@ -97,7 +97,7 @@ int main() {
char *xdg_current_desktop = getenv("XDG_CURRENT_DESKTOP"); char *xdg_current_desktop = getenv("XDG_CURRENT_DESKTOP");
if (!xdg_current_desktop) { if (!xdg_current_desktop) {
cout << "Your desktop environment could not be determined. Maybe running as root?" << endl; cout << "Your desktop environment could not be determined." << endl;
gracefull_exit(SIGTERM); gracefull_exit(SIGTERM);
} }
else if (strstr(xdg_current_desktop, "GNOME")) { else if (strstr(xdg_current_desktop, "GNOME")) {

Loading…
Cancel
Save