Hello,

maybe someone is interested in this device action. When switching on my 
external backup hard disc, I get an entry in the device manager to start 
the dirvish backup.  The hard disc is mounted by KDE's device manager 
and is unmounted after the backup run again.

It's not yet perfect as you still need to enter the root password, but 
you could solve this by writing your own small wrapper script and 
configuring it via sudo, so that it can be started by a normal user.

create the file:
~/kde/share/apps/solid/actions/dirvish:-run-backup.desktop
(on some systems it is ~/kde4/....)

with this content:

> [Desktop Action open]
> Exec=kdesu "konsole --hold -e sh -c 'dirvish-expire && dirvish-runall && 
> umount %f'"
> Icon=kpilot_backup
> Name=dirvish run backup
>
> [Desktop Entry]
> Actions=open;
> Type=Service
> X-KDE-Action-Custom=true
> X-KDE-Solid-Predicate=[ IS StorageVolume AND StorageVolume.ignored == false ]

(I post it as quoted to not make the lines wrap around)

Greetings,
Arno
_______________________________________________
Dirvish mailing list
[email protected]
http://www.dirvish.org/mailman/listinfo/dirvish

Reply via email to