freebsd-ports/sysutils/kshutdown/files/patch-configuration.cpp
Markus Brueffer 7ee5501f48 Add kshutdown 0.8.1, an advanced shutdown utility for KDE.
Features:
  o Turn Off Computer (logout and halt the system)
  o Restart Computer (logout and reboot the system)
  o Lock Screen (lock the screen using a screen saver)
  o End Current Session (end the current KDE session and logout the user)
  o Extras (additional, external user commands)
  o Time and delay options
  o Command line and DCOP support
  o System tray icon and panel applet
  o Visual and sound notifications
  o KDE Kiosk support

WWW: http://kshutdown.sourceforge.net/
2006-01-09 20:23:21 +00:00

14 lines
610 B
C++

--- kshutdown/configuration.cpp.orig Mon Jan 9 18:40:46 2006
+++ kshutdown/configuration.cpp Mon Jan 9 19:01:22 2006
@@ -31,7 +31,11 @@
// automation
setCurrentGroup("Automation");
i_cdTrayClose = addItemBool("cd_tray_close", cdTrayClose, false, "CDTrayClose");
+#ifdef Q_OS_FREEBSD
+ i_cdTrayCloseCommand = addItemString("cd_tray_close_command", cdTrayCloseCommand, "cdcontrol close", "CDTrayCloseCommand");
+#else
i_cdTrayCloseCommand = addItemString("cd_tray_close_command", cdTrayCloseCommand, "eject -t", "CDTrayCloseCommand");
+#endif
// custom message
setCurrentGroup("Custom Message");