Bug 163705 - Settings for directory should be in home directory and not in each directory as .directory
Summary: Settings for directory should be in home directory and not in each directory ...
Status: CONFIRMED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: SVN
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Peter Penz
URL:
Keywords:
: 206811 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-06-10 14:49 UTC by Marcel Wirth
Modified: 2010-10-09 21:47 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Error Message when trying to change icon (111.61 KB, image/jpeg)
2008-08-21 15:27 UTC, Marcel Wirth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcel Wirth 2008-06-10 14:49:39 UTC
Version:            (using KDE 4.0.5)
Installed from:    Unspecified

If you want to save settings for a directory it always stores it in this directory in a
file called .directory.

This maybe makes sense for most cases. However if you do not have the right to write to a directory this does not work. Why are informations about directories not stored in the home folder???

Or at least it would make sense if it would do such settings in the home folder if the user has no write permission.
Comment 1 Peter Penz 2008-06-10 15:26:46 UTC
> However if you do not have the right to write to a directory this
> does not work. Why are informations about directories not
> stored in the home folder??? 

They are already stored under ~/.kde4/share/apps/dolphin and this should work. Which kind of settings are not remembered in your use case? Does it work if you go to / and e. g. change the icons view to the details view? Thanks!
Comment 2 FiNeX 2008-06-11 10:46:31 UTC
I've just tested dolphin (compiled some minutes ago). 
1) Create a new directory
2) Changed the directory icon 
3) Enter in the new directory
4) "Edit"->"show hidden files"
You will see the ".directory" file which contains:
- the icon path
- the "show hidden files" setting
Comment 3 Marcel Wirth 2008-08-21 15:27:35 UTC
Created attachment 26959 [details]
Error Message when trying to change icon
Comment 4 Dotan Cohen 2008-12-08 12:14:55 UTC
Could Icon information and other settings be stored in Akonadi? That would remove the need for a .directory file, yet still let other KDE apps (such as K3B) to show the correct icon.
Comment 5 Peter Penz 2008-12-08 13:57:34 UTC
@Dohan: This would be too expensive from a performance point of view and introduces new issues (e. g. if a directory is renamed outside the scope of Dolphin, suddenly the directory icon would disappear as Akonadi cannot be aware about the change).

@Marcel: this is a little bit different issue as I initially thought... Changing a directory icon requires having write access to the directory and we currently don't intend providing different directory icons for the same directories dependent from the user. Anyway I think the UI must be improved so that changing the icon is not possible at all.
Comment 6 Marcel Wirth 2008-12-08 14:07:14 UTC
Thanks Peter for pointing this out.

That is a little bit anoying for me for following reason:
Not all users are using the same icons. So if I use an Icon for a folder that is not provided in a theme other users use they get just an ugly question mark symbol...
Comment 7 Dotan Cohen 2008-12-08 15:33:33 UTC
> Anyway I think the UI must be improved so that
> changing the icon is not possible at all.

Please do not do that. Configuring icons is very important from a usability point of view. We use them extensively. One family I know installed Kubuntu for the simple reason that in Windows they could not change the icons of the folders. The grandmother does not know Hebrew, and the children do not know the Arabic Script in Morrocan. But everyone knows icons.
Comment 8 Peter Penz 2008-12-08 17:18:52 UTC
@Dotan: I meant that the UI should only get disabled if there is no write access for the directory, I don't want to disable the possibility to change icons in general :-)
Comment 9 Peter Penz 2010-10-09 21:47:11 UTC
*** Bug 206811 has been marked as a duplicate of this bug. ***