View previous topic :: View next topic |
Author |
Message |
FrancoisVal Tux's lil' helper
Joined: 12 May 2005 Posts: 86 Location: Namur, Belgique
|
Posted: Thu Nov 21, 2024 8:27 pm Post subject: [SOLVED] Problem to create a folder in KDE 6. |
|
|
Maybe I am blind but I wonder how it is possible to create a new folder now in KDE 6. If I click on "Create new", the list of all the folders of my home directory appears and there is a no choice to create a new folder. If I chose one of the folders and a name, a directory is created with a copy of the files in the original directory.
How is this possible ? Why such a basic operation has become so compilcated ?
Here is a link to a screenshot: https://pasteboard.co/eUxsPV6eogiW.png
Has anyone also noticed this ? _________________ François Valenduc
Last edited by FrancoisVal on Fri Nov 22, 2024 6:25 am; edited 1 time in total |
|
Back to top |
|
|
rab0171610 Guru
Joined: 24 Dec 2022 Posts: 437
|
Posted: Thu Nov 21, 2024 11:00 pm Post subject: |
|
|
I cannot replicate this. In Dolphin, when selecting File > +Create New > and then clicking on the top item 'Folder . . . CTRL+SHIFT+ N' a dialog box pops up --
'Create New Folder - Dolphin'. There is a editable dialog box as well that uses the default folder name 'New Folder' that is highlighted allowing for editing of the new folder name. You can also do this by right clicking anywhere on the display pane and selecting create new from the context menu.
If you have a lot of directories/folders in the current directory, the top item in the context menu 'Folder . . . CTRL+SHIFT+N' may not be visible depending on your display resolution or scaling. Try creating the new directory in an empty directory ( or one that contains fewer to no items) and moving it to where you would like as a workaround.
You can also hit 'F4' to open a terminal in Dolphin at the current directory location and use 'mkdir <foldername>' to create the directory manually. |
|
Back to top |
|
|
steve_v Guru
Joined: 20 Jun 2004 Posts: 412 Location: New Zealand
|
Posted: Fri Nov 22, 2024 3:08 am Post subject: |
|
|
https://bugs.kde.org/show_bug.cgi?id=494679
TLDR: Set XDG_TEMPLATES_DIR to some empty directory (i.e. not $HOME) _________________ Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy. |
|
Back to top |
|
|
rab0171610 Guru
Joined: 24 Dec 2022 Posts: 437
|
Posted: Fri Nov 22, 2024 4:10 am Post subject: |
|
|
Per that bug, you can change XDG_TEMPLATES_DIR="$HOME/" to XDG_TEMPLATES_DIR="" in ~/.config/user-dirs.dirs if the auto populating of the home directory is actually causing the sub-context menu entry 'Folder . . . CTRL+SHIFT+ N' to be obscured or demoted due to excessive number of items in the context menu. It will definitely reduce the size of the context menu on the screen and take up less space, hopefully bringing the +Create > Folder option into view if that is the cause. |
|
Back to top |
|
|
FrancoisVal Tux's lil' helper
Joined: 12 May 2005 Posts: 86 Location: Namur, Belgique
|
|
Back to top |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3446 Location: Canada
|
Posted: Fri Nov 22, 2024 9:40 am Post subject: |
|
|
rab0171610 wrote: | Per that bug, you can change XDG_TEMPLATES_DIR="$HOME/" to XDG_TEMPLATES_DIR="" in ~/.config/user-dirs.dirs if the auto populating of the home directory is actually causing the sub-context menu entry 'Folder . . . CTRL+SHIFT+ N' to be obscured or demoted due to excessive number of items in the context menu. It will definitely reduce the size of the context menu on the screen and take up less space, hopefully bringing the +Create > Folder option into view if that is the cause. |
After reading the bug, I am trying to understand what having a template even means for creating a directory. In what use case do you want the new directory to be anything but empty ?
Last edited by dmpogo on Fri Nov 22, 2024 10:53 pm; edited 1 time in total |
|
Back to top |
|
|
rab0171610 Guru
Joined: 24 Dec 2022 Posts: 437
|
Posted: Fri Nov 22, 2024 3:30 pm Post subject: |
|
|
I don't really know what the Templates directory that is placed in the home directories after KDE Plamsa installation or upgrade is actually for. I don't use any kind of templates so I delete it. I can only assume in this context it works like the default naming scheme 'New Folder', 'New Folder1', 'New Folder2'. Instead you can name a folder similar to one that is already named by clicking the name of that directory in the context sub-menu of create a new folder, and then edit it slightly to distinguish. Otherwise it adds the numbers at the end automatically, 1, 2, 3 etc. 'Data', 'Data 1', 'Data 2'. Or one can add an identifying suffix, 'Data-Jack', 'Data-Jill', 'Data-Jeff' by editing the name in the dialog box that pops up when creating a new folder. That is purely conjecture on my part from testing the context menu to create new folders with template directory set to the home directory. Maybe a template would allow the default suffix of 1, 2, 3 to be changed to something more meaningful, i.e A, B, C, etc.. This would only be helpful if creating directories often or multiple directories, for say like alphabetizing music or videos into sub-directories. |
|
Back to top |
|
|
steve_v Guru
Joined: 20 Jun 2004 Posts: 412 Location: New Zealand
|
Posted: Fri Nov 22, 2024 6:13 pm Post subject: |
|
|
AFAIK it's supposed to contain files, e.g. a 'simple html.html' could contain some headers or whatever, and you'd see it as an option for create new -> simple html file.
Personally I wish the whole xdg_user_dirs concept would just die in a fire, I know where I keep my stuff and I don't need or want my home directory polluted with "well known" directories like "Music", "Pictures", "Documents", "Downloads" or any other such trash. I really have no use for "templates" either, for that matter.
The whole thing is just the usual pandering to pathologically indecisive and disorganised ex-windows/mobile-generation users who can't decide on a logical directory structure for themselves. _________________ Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy. |
|
Back to top |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3446 Location: Canada
|
Posted: Mon Dec 02, 2024 12:01 am Post subject: |
|
|
steve_v wrote: | AFAIK it's supposed to contain files, e.g. a 'simple html.html' could contain some headers or whatever, and you'd see it as an option for create new -> simple html file.
Personally I wish the whole xdg_user_dirs concept would just die in a fire, I know where I keep my stuff and I don't need or want my home directory polluted with "well known" directories like "Music", "Pictures", "Documents", "Downloads" or any other such trash. I really have no use for "templates" either, for that matter.
The whole thing is just the usual pandering to pathologically indecisive and disorganised ex-windows/mobile-generation users who can't decide on a logical directory structure for themselves. |
Actually, modern mobile users do not even know what directory is. They are all about context driven search. |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1997
|
Posted: Mon Dec 02, 2024 5:34 pm Post subject: |
|
|
steve_v wrote: | AFAIK it's supposed to contain files, e.g. a 'simple html.html' could contain some headers or whatever, and you'd see it as an option for create new -> simple html file.
Personally I wish the whole xdg_user_dirs concept would just die in a fire, I know where I keep my stuff and I don't need or want my home directory polluted with "well known" directories like "Music", "Pictures", "Documents", "Downloads" or any other such trash. I really have no use for "templates" either, for that matter.
The whole thing is just the usual pandering to pathologically indecisive and disorganised ex-windows/mobile-generation users who can't decide on a logical directory structure for themselves. |
Isn't the whole point that you can easily then override such directories because applications conform to that specification? |
|
Back to top |
|
|
steve_v Guru
Joined: 20 Jun 2004 Posts: 412 Location: New Zealand
|
Posted: Tue Dec 03, 2024 3:59 am Post subject: |
|
|
Change yes, disable no. KDE for example will create all those directories at the default locations if the variables are unset, regardles of whether anything is using or ever will use them.
To me, XDG_TEMPLATES_DIR being unset means "I don't want an xdg templates directory, so don't create one". To KDE it means "You must be mistaken, I'll set it for you and mkdir a bunch of stuff you just rmdir'd".
Same goes for the rest, you can point your "Pictures" directory somewhere else, but you must have a directory for pictures, even if nothing actually uses it.
You could set them all to $HOME of course, but then stuff like the OP happens, and KDE claims it's a "distro problem, the variable is incorrectly set"... AKA freedesktop knows best, you can put your stuff wherever you like, but you must use the categories dictated by freedesktop.
I don't have any templates, why must I have a templates directory? I don't have any pictures or videos in my home dir either, so why must I assign directories for them? What's wrong with "save as -> select destination" anyway? _________________ Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy. |
|
Back to top |
|
|
rab0171610 Guru
Joined: 24 Dec 2022 Posts: 437
|
Posted: Tue Dec 03, 2024 6:33 pm Post subject: |
|
|
@steve,
I do not want a Templates directory either, esp in my home folder. My previous workaround, setting the Templates directory to "" , effectively null, instead of the home directory to avoid undesirable population in context menu lead to KDE Plasma updates recreating the Templates folder in my home directory, even though I had deleted it. Also, as you pointed out, the default Templates directory would be changed in settings to ~/Templates again. My thought now is to create an empty Templates directory in a hidden directory, such as ~./config/Templates and setting the default Templates directory to that. This should keep the directory from re-creating itself in my home directory every time I update KDE. The criteria for having a default Templates directory, even though it is of no use to me and distracting in Home, will have been met. Out of sight, out of mind. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|