Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Nov 2000 15:58:43 -0500
From:      Vivek Khera <khera@kciLink.com>
To:        kevlo@FreeBSD.org
Cc:        ports@freebsd.org
Subject:   kdeeject patch
Message-ID:  <14886.49027.287879.699821@onceler.kciLink.com>

next in thread | raw e-mail | index | archive | help
The kde2 program kdeeject is called with a full device name from the
eject menu for a CDROM device type.  This doesn't work with freebsd's
eject program.  The following patch hacks up the device to the form
that seems acceptable to eject.

Alternatively, the eject program could be updated.


--- kdeeject.dist	Thu Nov 30 15:54:48 2000
+++ kdeeject	Thu Nov 30 15:57:45 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 eject $dev; then
     # Success -> update icon
     dcop kdesktop default refreshIcons
     exit 0


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14886.49027.287879.699821>