You are not logged in.
Pages: 1
Hi there,
I'm trying to make something like a password-protected folder under xfce.
For that I changed the folder rights so that only the owner can read/write and changed the owner to root.
Now I was trying to write a shell script (executable from root via gksu) which should change the owner back to the user, open thunar for the user and after thunar has finished change the owner back to root. But when I start thunar from the shell it goes to background, so a simple:
#!/bin/bash
chown USER:users /home/USER/Secret
sudo -u USER thunar /home/USER/Secret
chown root:root /home/USER/Secret
does not work.
How can I prevent thunar from going to background?
P.S. sorry for my bad english
[img]http://counter.li.org/cgi-bin/certificate.cgi/506718[/img]
Offline
This won't work because Thunar will first run inside the session invisibly with the --daemon argument.
Every new thunar instance coming afterwards will just hand over the arguments to the daemonized first instance and close.
What do you actually want to achieve? Use files'n folders temporarily and then lock them again?
Have a look at 'zenity' - it could provide a dialog from script that you click OK when you are done using them.
Offline
Pages: 1
[ Generated in 0.008 seconds, 7 queries executed - Memory usage: 517.02 KiB (Peak: 529.75 KiB) ]