[Thunar-dev] linking root paths

Brian J. Tarricone bjt23 at cornell.edu
Sat Nov 4 13:02:36 CET 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Benedikt Meurer wrote:
> Brian J. Tarricone wrote:
>> Hey Benny,
>>
>> xfdesktop allows the user to drag (for example) the 'File System' icon
>> from the thunar path bar to the desktop, or to a folder icon on the
>> desktop, if for some reason they want to make a symlink to '/'.
>> However, thunar-vfs seems to explicitly disallow this, and throws a
>> critical warning.
>>
>> The culprit seems to be line 258 of thunar-vfs-io-ops.c, in
>> _thunar_io_ops_link_file():
>>
>> _thunar_vfs_return_val_if_fail (!thunar_vfs_path_is_root (source_path),
>>                                 FALSE);
>>
>> Is there any reason for this?  I can easily do "ln -s / ~/file-system"
>> from a terminal; why doesn't thunar-vfs allow it?
> 
> There's no real technical reason for this. It's more of a usability
> feature. Well, it doesn't make sense for the average user (actually for
> no user at all) to introduce this kind of cycles in the file system. The
> "File System" is the same as the "Harddisk" item on OS X for example. A
> special item that refers to the root.

Ok, I think it's silly to go to the effort to disallow it, but I don't
really care either way.

	-brian

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFTIFb6XyW6VEeAnsRAkq/AJ4ny3fKfMtGl4KwZ5/kLgIYhTq9hQCdFLzj
8I+lRqgoqa8AE1sJAS5iuRQ=
=xCSU
-----END PGP SIGNATURE-----



More information about the Thunar-dev mailing list