diff options
| author | Bastien Nocera <hadess@hadess.net> | 2012-03-05 15:22:46 (GMT) |
|---|---|---|
| committer | Bastien Nocera <hadess@hadess.net> | 2012-03-05 15:22:46 (GMT) |
| commit | 305057ac831b357a03bb3f244059048551321b71 (patch) | |
| tree | 69938e159a9ff642047e4ded0c083959434b612c | |
| parent | 0fc947c590ec40f492af16cef5e3de7775ba08ab (diff) | |
| download | gnome-settings-daemon-305057ac831b357a03bb3f244059048551321b71.zip gnome-settings-daemon-305057ac831b357a03bb3f244059048551321b71.tar.xz | |
power: Remove obsolete check
We already check whether we're running as root.
| -rw-r--r-- | plugins/power/gsd-backlight-helper.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/plugins/power/gsd-backlight-helper.c b/plugins/power/gsd-backlight-helper.c index fd9325e..533bec0 100644 --- a/plugins/power/gsd-backlight-helper.c +++ b/plugins/power/gsd-backlight-helper.c @@ -223,15 +223,6 @@ main (int argc, char *argv[]) goto out; } - /* check we're not being spoofed */ - pkexec_uid_str = g_getenv ("PKEXEC_UID"); - if (pkexec_uid_str == NULL) { - g_print ("%s\n", - "This program must only be run through pkexec"); - retval = GSD_BACKLIGHT_HELPER_EXIT_CODE_INVALID_USER; - goto out; - } - /* SetBrightness */ if (set_brightness != -1) { filename_file = g_build_filename (filename, "brightness", NULL); |