I could not find where to post this, so sending over here. I changed Alex's xdg-user-dirs application to make it using symlinks instead of actual directories. Maybe it's something in vain but just wanted to put my solution into a prototype so as to be tested. (Maybe someone like it). Actually using symlinks give better handling of localization than using --force. It does not touch directories, so can be considered theoretically more secure. I've also changed handling of user-dirs.dirs which make it possible to use CUSTOM_DESKTOP_DIR, so that this directories are never touched. Currently user-dirs.dirs is used to store old localized directories, so that left-over symlinks don't exist. Actual files are to be stored in (.desktop, .download, etc.) so they are hidden. If it's necessary, packages can use those directories without worrying about internationalized names. It removes symlinks using unlink, so that it's impossible to delete directories (no risk of losing actual data). Some parts are dirty hack, and I could not follow coding style of the Alex, but I did not want to spend much more time about it, keeping in my mind that this kind of usage is not decided. Anyways, I've attached patch against v0.0.1 of xdg-user-dirs. (I figured out new version exists but was too late :() Hopefully it's enough to show approach this way. I'd be happy to hear about comments on it. And here's the real thing; http://www.gnome.org/~alexl/xdg-user-dirs-0.0.1.tar.gz On Thu, 2007-03-15 at 11:13 +0100, Alexander Larsson wrote: > The basic user directories stuff discussed on fedora-desktop-list has > now landed in rawhide (install the xdg-user-dirs and xdg-user-dirs-gtk > packages to get it). I've created patches to the core desktop packages > that needed it (nautilus, gnome-panel, gnome-user-share) to make it > work. However, to fully make use of this we need to patch a bunch of > applications to take advantage of this new feature. > > The directories availible are: > DESKTOP: the standard desktop dir > DOWNLOAD: default location for downloads > TEMPLATES: used by nautilus for templates > PUBLICSHARE: This is ~/Public as used by gnome-user-share > DOCUMENTS: default location for "documents" > MUSIC: default location for music > PICTURES: default location for pictures > VIDEOS: default location for movies > eog/gthumb/f-spot: PICTURES as default for file selector > > Any other ideas? > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > Alexander Larsson Red Hat, Inc > alexl@xxxxxxxxxx alla@xxxxxxxxxxxxxx > He's a jaded alcoholic romance novelist from the 'hood. She's a radical > antique-collecting nun from Mars. They fight crime! > -- > fedora-devel-list mailing list > fedora-devel-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/fedora-devel-list
Attachment:
symlink.patch.gz
Description: GNU Zip compressed data
# Default settings for user directories # # The values are relative pathnames from the home directory and # will be translated on a per-path-element basis into the users locale DESKTOP=.desktop DOWNLOAD=.download TEMPLATES=.templates PUBLICSHARE=.public DOCUMENTS=.documents MUSIC=.music PHOTOS=.photos # Another alternative is: #MUSIC=Documents/Music #PHOTOS=Documents/Photos
# Default settings for user directories # # The values are relative pathnames from the home directory and # will be translated on a per-path-element basis into the users locale DESKTOP=.desktop DOWNLOAD=.download TEMPLATES=.templates PUBLICSHARE=.public DOCUMENTS=.documents MUSIC=.music PHOTOS=.photos # Another alternative is: #MUSIC=Documents/Music #PHOTOS=Documents/Photos
-- fedora-devel-list mailing list fedora-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-devel-list