aboutsummaryrefslogtreecommitdiffstats
path: root/x11/kde4-workspace
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2000-12-01 15:36:07 +0800
committerkevlo <kevlo@FreeBSD.org>2000-12-01 15:36:07 +0800
commit745a1fbe8c0ceb1b8c4ce2e98a3f16ce2298a6a2 (patch)
tree7e47fdec01ed4d5c28e041b171253a1a732860aa /x11/kde4-workspace
parent1ef6b65e22980a2596aae0304da5d0b3f40655b1 (diff)
downloadfreebsd-ports-gnome-745a1fbe8c0ceb1b8c4ce2e98a3f16ce2298a6a2.tar.gz
freebsd-ports-gnome-745a1fbe8c0ceb1b8c4ce2e98a3f16ce2298a6a2.tar.zst
freebsd-ports-gnome-745a1fbe8c0ceb1b8c4ce2e98a3f16ce2298a6a2.zip
Fix eject device.
Submitted by: Vivek Khera <khera@kciLink.com>
Diffstat (limited to 'x11/kde4-workspace')
-rw-r--r--x11/kde4-workspace/files/patch-kdeeject12
1 files changed, 12 insertions, 0 deletions
diff --git a/x11/kde4-workspace/files/patch-kdeeject b/x11/kde4-workspace/files/patch-kdeeject
new file mode 100644
index 000000000000..38c12b5eafbf
--- /dev/null
+++ b/x11/kde4-workspace/files/patch-kdeeject
@@ -0,0 +1,12 @@
+--- kdesktop/kdeeject.orig Fri Dec 1 15:25:26 2000
++++ kdesktop/kdeeject Fri Dec 1 15:25:33 2000
+@@ -8,7 +8,8 @@
+ # kmessage, to show a message box in case of error.
+ #
+ if [ $# = 1 -a "$1" != "--help" ]; then
+- if eject $1; then
++ dev=`echo $1 | sed -E -e 's#/dev/##' -e 's/([0-9])./\1/'`
++ if cdcontrol -f $dev eject; then
+ # Success -> update icon
+ dcop kdesktop default refreshIcons
+ exit 0