Terminal and Thunar starting in /

Benedikt Meurer benedikt.meurer at unix-ag.uni-siegen.de
Sat Jan 6 11:15:29 CET 2007


Brian J. Tarricone wrote:
> Benedikt Meurer wrote:
>> Brian J. Tarricone wrote:
>>>> thunar-vfs now chdir()'s when listing folder contents to avoid inode
>>>> lookups for each and every file. Afterwards thunar-vfs chdir() to "/" to
>>>> avoid blocking a folder removal with certain file systems (i.e. smbfs).
>>> That sounds pretty evil.  A library is changing the app's working
>>> directory out from under it?  Boooooo!
>> Yes, I refused to do that for a long time. But since it really saves
>> expensive inode lookups, it's worth it, and I thought that when
>> launching applications, we all pass a sane working directory.
> 
> Are you accusing me of sanity?  How dare you!
> 
>>>> Looks like xfdesktop doesn't specify a working directory when launching
>>>> applications from the menu.
>>> It uses xfce_exec(), so it can't.
>> Meh, why doesn't xfce_exec() have a working_directory parameter.
> 
> Blame Jasper... he wrote it ^_^

I don't really want to revert that change, it gives a nice speed up and
makes the parallel code easier to read. ;-)

Can we perhaps change xfce_exec() to use the home dir for the current
working directory by default? The other possible way would be to chdir()
to home in thunar-vfs, assuming that the user will never want to delete
it's home directory anyway. ;-)

> 	-brian

Benedikt



More information about the Xfce mailing list