For multimedia-key-bindings use 'cdcontrol' instead of 'eject' to eject cds
This commit is contained in:
parent
65f397150e
commit
e3a1239706
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=202224
2 changed files with 16 additions and 11 deletions
|
@ -8,6 +8,7 @@
|
|||
|
||||
PORTNAME= gnome-control-center
|
||||
PORTVERSION= 2.20.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= sysutils gnome
|
||||
MASTER_SITES= ${MASTER_SITE_GNOME}
|
||||
MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
|
||||
|
|
|
@ -1,11 +1,15 @@
|
|||
--- gnome-settings-daemon/gnome-settings-multimedia-keys.c.orig Wed Jul 27 13:52:13 2005
|
||||
+++ gnome-settings-daemon/gnome-settings-multimedia-keys.c Wed Jul 27 13:52:32 2005
|
||||
@@ -828,7 +828,7 @@
|
||||
do_mail_action (acme);
|
||||
break;
|
||||
case SLEEP_KEY:
|
||||
- do_sleep_action ("apm", "xset dpms force off");
|
||||
+ do_sleep_action ("zzz", "xset dpms force off");
|
||||
break;
|
||||
case SCREENSAVER_KEY:
|
||||
if ((cmd = g_find_program_in_path ("gnome-screensaver-command")))
|
||||
--- gnome-settings-daemon/gnome-settings-multimedia-keys.c.orig 2007-10-28 13:37:40.000000000 -0400
|
||||
+++ gnome-settings-daemon/gnome-settings-multimedia-keys.c 2007-10-28 13:38:23.000000000 -0400
|
||||
@@ -610,8 +610,11 @@
|
||||
if ((command != NULL) && (strcmp (command, "") != 0))
|
||||
execute (acme, command, FALSE, FALSE);
|
||||
else
|
||||
+#if __FreeBSD__
|
||||
+ execute (acme, "cdcontrol eject", FALSE, FALSE);
|
||||
+#else
|
||||
execute (acme, "eject -T", FALSE, FALSE);
|
||||
-
|
||||
+#endif
|
||||
g_free (command);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue