Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
gnome-settings-daemon.391
gnome-settings-daemon-no-lockscreen-screenshot....
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gnome-settings-daemon-no-lockscreen-screenshot.patch of Package gnome-settings-daemon.391
From e6cc91f842668e6674309779df4b38f590c8388e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org> Date: Tue, 7 Oct 2014 11:57:31 +0200 Subject: [PATCH] media-keys: Disallow screenshots when locked Allowing random people to create files in the user's home folder while the screen is locked is unexpected at best, so block the corresponding shortcuts (while still allowing taking screenshots to the clipboard for bug reports/reviews etc.). While at it, adjust the shortcut for screencasts as well (though the change their is purely informational, as screencasts are already blocked by the shell while locked). https://bugzilla.gnome.org/show_bug.cgi?id=737456 --- plugins/media-keys/shortcuts-list.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) Index: gnome-settings-daemon-3.10.2/plugins/media-keys/shortcuts-list.h =================================================================== --- gnome-settings-daemon-3.10.2.orig/plugins/media-keys/shortcuts-list.h +++ gnome-settings-daemon-3.10.2/plugins/media-keys/shortcuts-list.h @@ -94,6 +94,7 @@ typedef enum { #define GSD_KEYBINDING_MODE_LAUNCHER (SHELL_KEYBINDING_MODE_NORMAL | \ SHELL_KEYBINDING_MODE_OVERVIEW) #define SCREENSAVER_MODE SHELL_KEYBINDING_MODE_ALL & ~SHELL_KEYBINDING_MODE_UNLOCK_SCREEN +#define NO_LOCK_MODE SCREENSAVER_MODE & ~SHELL_KEYBINDING_MODE_LOCK_SCREEN #define POWER_KEYS_MODE (SHELL_KEYBINDING_MODE_NORMAL | \ SHELL_KEYBINDING_MODE_OVERVIEW | \ SHELL_KEYBINDING_MODE_LOCK_SCREEN | \ @@ -129,13 +130,13 @@ static struct { { SCREENSAVER_KEY, "screensaver", NULL, NULL, SCREENSAVER_MODE }, { SCREENSAVER_KEY, NULL, N_("Lock Screen"), "XF86ScreenSaver", SCREENSAVER_MODE }, { HELP_KEY, "help", NULL, NULL, GSD_KEYBINDING_MODE_LAUNCHER }, - { SCREENSHOT_KEY, "screenshot", NULL, NULL, SHELL_KEYBINDING_MODE_ALL }, - { WINDOW_SCREENSHOT_KEY, "window-screenshot", NULL, NULL, SHELL_KEYBINDING_MODE_NORMAL }, - { AREA_SCREENSHOT_KEY, "area-screenshot", NULL, NULL, SHELL_KEYBINDING_MODE_ALL }, + { SCREENSHOT_KEY, "screenshot", NULL, NULL, NO_LOCK_MODE }, + { WINDOW_SCREENSHOT_KEY, "window-screenshot", NULL, NULL, NO_LOCK_MODE }, + { AREA_SCREENSHOT_KEY, "area-screenshot", NULL, NULL, NO_LOCK_MODE }, { SCREENSHOT_CLIP_KEY, "screenshot-clip", NULL, NULL, SHELL_KEYBINDING_MODE_ALL }, { WINDOW_SCREENSHOT_CLIP_KEY, "window-screenshot-clip", NULL, NULL, SHELL_KEYBINDING_MODE_NORMAL }, { AREA_SCREENSHOT_CLIP_KEY, "area-screenshot-clip", NULL, NULL, SHELL_KEYBINDING_MODE_ALL }, - { SCREENCAST_KEY, "screencast", NULL, NULL, SHELL_KEYBINDING_MODE_ALL }, + { SCREENCAST_KEY, "screencast", NULL, NULL, NO_LOCK_MODE }, { WWW_KEY, "www", NULL, NULL, GSD_KEYBINDING_MODE_LAUNCHER }, { PLAY_KEY, "play", NULL, NULL, SHELL_KEYBINDING_MODE_ALL }, { PAUSE_KEY, "pause", NULL, NULL, SHELL_KEYBINDING_MODE_ALL },
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor