This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to start dolphin from a script

Tags: None
(comma "," separated)
User avatar
bushveld
Registered Member
Posts
174
Karma
0
OS

How to start dolphin from a script

Thu Oct 08, 2009 7:45 pm
Hello

I like to start dolphin with a certain path from a script - is this possible?

here are the main lines
- first row opens the encryped folder with enfs
=> password must be profided in a window
- the decrypted FOLDER should be shown in dolphin but how to I get dolphin to wait until the password is provided?

konsole -e encfs ~/ENC_FOLDER/ ~/FOLDER_TO_MOUNT/
dolphin FOLDER_TO_MOUNT

THanks a lot
Michael


openSUSE 11.2 and KDE 4.4.0 -- Vita brevis! --
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Use one script to do the following:

Code: Select all
encfs ~/ENC_FOLDER ~/FOLDER_TO_MOUNT/
dolphiin ~/FOLDER_TO_MOUNT


Dolphin will fork immediately, causing the window to close, so you can simply run that script with "konsole -e" since bash will not continue executing until encfs exits ( assuming here that encfs doesn't fork itself )


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
bushveld
Registered Member
Posts
174
Karma
0
OS
Works like a charm

Thanks
Michael


openSUSE 11.2 and KDE 4.4.0 -- Vita brevis! --


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]