Lines 25-31
Link Here
|
25 |
# Warning, it has to be either eject 2.0.x or >=2.1.5 |
25 |
# Warning, it has to be either eject 2.0.x or >=2.1.5 |
26 |
# Otherwise it doesn't work as expected (it requires a |
26 |
# Otherwise it doesn't work as expected (it requires a |
27 |
# fstab entry for no reason). |
27 |
# fstab entry for no reason). |
28 |
eject $1 >/dev/null 2>&1 |
28 |
#eject $1 >/dev/null 2>&1 |
|
|
29 |
BLOCK_UDI=$(dcop kded mediamanager properties "$1" | head -1) |
30 |
[ -n "$BLOCK_UDI" ] || kdialog --title "KDE Eject" --error "Can't find UDI for URL $1" |
31 |
dbus-send --system --dest=org.freedesktop.Hal "$BLOCK_UDI" org.freedesktop.Hal.Device.Volume.Eject array:string:"" >/dev/null 2>&1 |
29 |
;; |
32 |
;; |
30 |
esac |
33 |
esac |
31 |
if test $? -eq 0; then |
34 |
if test $? -eq 0; then |