For multimedia-key-bindings use 'cdcontrol' instead of 'eject' to eject cds

This commit is contained in:
Michael Johnson 2007-10-28 17:41:37 +00:00
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

View file

@ -8,6 +8,7 @@
PORTNAME= gnome-control-center PORTNAME= gnome-control-center
PORTVERSION= 2.20.1 PORTVERSION= 2.20.1
PORTREVISION= 1
CATEGORIES= sysutils gnome CATEGORIES= sysutils gnome
MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/} MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}

View file

@ -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.orig 2007-10-28 13:37:40.000000000 -0400
+++ gnome-settings-daemon/gnome-settings-multimedia-keys.c Wed Jul 27 13:52:32 2005 +++ gnome-settings-daemon/gnome-settings-multimedia-keys.c 2007-10-28 13:38:23.000000000 -0400
@@ -828,7 +828,7 @@ @@ -610,8 +610,11 @@
do_mail_action (acme); if ((command != NULL) && (strcmp (command, "") != 0))
break; execute (acme, command, FALSE, FALSE);
case SLEEP_KEY: else
- do_sleep_action ("apm", "xset dpms force off"); +#if __FreeBSD__
+ do_sleep_action ("zzz", "xset dpms force off"); + execute (acme, "cdcontrol eject", FALSE, FALSE);
break; +#else
case SCREENSAVER_KEY: execute (acme, "eject -T", FALSE, FALSE);
if ((cmd = g_find_program_in_path ("gnome-screensaver-command"))) -
+#endif
g_free (command);
}