![]() Registered Member ![]()
|
Hello,
I'm working on a FUSE and automounter based construction to provide the user easy access to various resources in a map in the users homedirectory, like: /home/sbon/Workspace/Harddisks Network USBDevices These directories lead in an userfriendly way to resources mounted (somewhere else in the system) by the automounter. My FUSE fs supports .directory files, I want that the user sees what the resource is about, an USB stick as USB device, a harddisk as harddisk and a Samba/Windows share as SMB share. Now it's getting a bit technical here, sorry. The problem is that my fs offers the right .directory file after a lookup, getattr, open and read call. So for example when browsing the network map, and getting at the server map, with all the shares in it, a KDE app will look for .directory file in all the directories which represent a share via the above mentioned calls. In my case this looks like: [Desktop Entry] Icon=nuvola/64x64/devices/samba_unmount.png Now it's a little bit difficult to add this file to the result of a readdir call (merge it), so for now the same .directory file does not show up when I do a ls -al command in the "share" directory. Now I know that this did not lead to any problems some weeks ago, but because I'm using the latest KDE version (compiled from source, 4.4.95, or almost the latest version, but that's not the issue). I've read something about the improvments in the caching of shared data like icons, I suspect it is related with this. Any comments and suggestions? It's so not userfriendly when some directories are just presented as plain directory. Stef More info about fuse-workspace-ll and mount.md5key: http://linux.bononline.nl/projects/mount.md5key.new/ |
![]() Administrator ![]()
|
Improvements in the caching of icons are not related to .directory files at all. It was related to the binary cache that was used to store them, which has many stability improvements in 4.5.
Try placing the full path to the icon in the Icon= field. Simply put in "samba_unmount" as the icon name. You may wish to try placing your icons in the "hicolor" theme instead as well.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]