[dolphin] [Bug 494679] Dolphin populates "Create new" menu with the content of home dir
Felix Ernst
bugzilla_noreply at kde.org
Tue Oct 15 10:05:55 BST 2024
https://bugs.kde.org/show_bug.cgi?id=494679
Felix Ernst <felixernst at kde.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |felixernst at kde.org
--- Comment #9 from Felix Ernst <felixernst at kde.org> ---
This was brought up in the KDE file management chat room. There Jin Liu
suggested the following:
>Maybe it should have some fool-proof check, as it's quite common to set these places to $HOME.
I would agree and say, if such an error is identified, it should not show the
contents of $HOME and instead guide users towards resolving the situation.
But how would the user interface look to guide users there? I don't have a set
opinion on that. Christian has pointed out that even the non-error case has a
bad user experience currently, because it is not clear from the "Create New"
menu how one would go about changing the entries of that menu. For this,
Christian has opened a separate feature request in
https://bugs.kde.org/show_bug.cgi?id=494774.
Here is an attempt at coming up with a possible solution:
- We should have an action in the "Create New" menu called "Add Custom Entry…".
At the minimum, and if XDG_TEMPLATES_DIR is set to a sensible value, this
action could simply open that Templates folder. Of course it would be even
better if there was some explanation that users need to move template files
into that folder.
- If XDG_TEMPLATES_DIR is set to $HOME or some other nonsense location, we
should not show the contents of that directory in the "Create New" menu. So
"Add Custom Entry…" would be one of the few entries in that menu. Clicking it,
however, should not open the badly configured XDG_TEMPLATES_DIR but instead
show an error message saying something like: "The folder for templates on this
system is misconfigured and points to $HOME. Do you want to set it to a
Templates folder in your home directory?" and then a button "Confirm" to
trigger this.
The above is just the first idea I had. Other solutions might be better.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the kfm-devel
mailing list