The standard Desktop, Downloads, Videos and similar directories are not created during KDE startup on freshly created user. This could be created in the same way as for Gnome-session (see gnome-base/gnome-session ebuild) - it creates file /etc/X11/xinit/xinitrc.d/10-user-dirs-update-gnome, which calls xdg-user-dirs-create. Without this, the KDE experience on fresh installation is lowered. It could be added to kde-base/kde-env for example, I can provide a patch - if you want. Other distributions are modifying xdg-user-dirs package directly (as a central solution) to achieve the same goal. I do not know why Gentoo has specific solution just for gnome-session only, so here is the KDE-specific bug to fix the same issue. Other distributions: Fedora 20: https://apps.fedoraproject.org/packages/xdg-user-dirs/ CentoOS6/RedHat6: http://rpm.pbone.net/index.php3/stat/4/idpl/25011930/dir/centos_6/com/xdg-user-dirs-0.12-4.el6.x86_64.rpm.html Ubuntu: http://packages.ubuntu.com/trusty/amd64/xdg-user-dirs/filelist If Gentoo goes the same way, it needs to remove the gnome-base/gnome-session solution and modify xfce-base/xfce4-session to not call the update.
@freedesktop, what do you think of the possibility of a freedesktop-wide solution?
(In reply to Michael Palimaka (kensington) from comment #1) > @freedesktop, what do you think of the possibility of a freedesktop-wide > solution? There already is one. Either your desktop calls `xdg-user-dirs-update` in it's startup scripts (like Xfce does from /etc/xdg/xfce/xinitrc) or .desktop file will be used (/etc/xdg/autostart/user-dirs-update-gtk.desktop) (which does a bit more than just create the directories, since it's the xdg-user-dirs-gtk for handling localization) Either way, there are 2 ways of getting the directories as-is What do you suggest for an freedesktop-wide solution? I'm not going to remove the directory creation from Xfce, it can stay there since upstream wants it that way, even if the directories are created elsewhere. Ubuntu ships pregenerated directories from /etc/skel, which is what I was suggested to by the xdg-user-dirs upstream some years ago, and I deemed it unrequired thanks to all the major desktops already handling it on their own So, do we want to change our /etc/skel to be more Ubuntu-like?
Note that the directories don't have anything to do with X or any desktops per se. No reason why console text application couldn't use XDG directories as well, and many do, so notice that /etc/X11 is out of question Likewise creating the directories from anywhere else than skel only once would ruin the localization that might, or might not happen depending on users settings, not everyone has ~/Desktop, it might as well be ~/Työpöytä (Finnish) or something else So /etc/skel seems to be the only option?
I guess we will just copy gnome-session then and dump a xinitrc.d in via kde-env then.
I'll also follow up to see if upstream is interested in integrating this into startkde
Please don't copy the GNOME way! KDE was set up properly, I do not like the localized name "Dokumente", I simply use "documents". Pictures and Videos in $HOME are not needed, I have a separate partition for those files, as I like all the users on my Laptop to have access to them. So I modified KDE standard directories to reflect my setup. Then comes the first GNOME login: - creates all the not needed (localized) directories despite I configured it to my needs - sets the XDG Variables to point to the newly created directories - next KDE login and here also all dirs are screwed up. If I then change all the standard dirs back to what I want from within KDE (!) even Gnome seems to be happy with it and uses them. So - if you think it is needed to create standard dirs on startup be careful and respect the users choice if there already exists a reasonable setup...
(In reply to Franz Fellner from comment #6) > Please don't copy the GNOME way! > KDE was set up properly, I do not like the localized name "Dokumente", I > simply use "documents". Pictures and Videos in $HOME are not needed, I have > a separate partition for those files, as I like all the users on my Laptop > to have access to them. > So I modified KDE standard directories to reflect my setup. > Then comes the first GNOME login: > - creates all the not needed (localized) directories despite I configured it > to my needs > - sets the XDG Variables to point to the newly created directories > - next KDE login and here also all dirs are screwed up. > > If I then change all the standard dirs back to what I want from within KDE > (!) even Gnome seems to be happy with it and uses them. > > So - if you think it is needed to create standard dirs on startup be careful > and respect the users choice if there already exists a reasonable setup... You are doing it wrong actually. If you have your own setup of directories (i.e. non-standard), you need to provide your own ~/.config/user-dirs.conf, where you can either disable the directory creation completely (enabled=False), or tune the locations - see http://askubuntu.com/questions/408051/ubuntu-gnome-creates-videos-desktop-and-public-every-boot In either case, the KDE startup just needs to call the xdg-user-dirs-update tool, which takes the user wishes (from the configuration) into account.
(In reply to Oldrich Jedlicka from comment #7) > (In reply to Franz Fellner from comment #6) > > Please don't copy the GNOME way! > > KDE was set up properly, I do not like the localized name "Dokumente", I > > simply use "documents". Pictures and Videos in $HOME are not needed, I have > > a separate partition for those files, as I like all the users on my Laptop > > to have access to them. > > So I modified KDE standard directories to reflect my setup. > > Then comes the first GNOME login: > > - creates all the not needed (localized) directories despite I configured it > > to my needs > > - sets the XDG Variables to point to the newly created directories > > - next KDE login and here also all dirs are screwed up. > > > > If I then change all the standard dirs back to what I want from within KDE > > (!) even Gnome seems to be happy with it and uses them. > > > > So - if you think it is needed to create standard dirs on startup be careful > > and respect the users choice if there already exists a reasonable setup... > > You are doing it wrong actually. If you have your own setup of directories > (i.e. non-standard), you need to provide your own ~/.config/user-dirs.conf, It's user-dirs.dirs here, and tuning default paths from within kde systemsettings modifies that file. Nevertheless Gnome on first startup (really the first time it is run, not on every login like in that ubuntu FAQ) ignores those settings. I saw this several times when I played around with Gnome on a different User account. AFAIR the last time I tested was with GNOME 3.12.
(In reply to Franz Fellner from comment #8) > (In reply to Oldrich Jedlicka from comment #7) > > (In reply to Franz Fellner from comment #6) > > > Please don't copy the GNOME way! > > > KDE was set up properly, I do not like the localized name "Dokumente", I > > > simply use "documents". Pictures and Videos in $HOME are not needed, I have > > > a separate partition for those files, as I like all the users on my Laptop > > > to have access to them. > > > So I modified KDE standard directories to reflect my setup. > > > Then comes the first GNOME login: > > > - creates all the not needed (localized) directories despite I configured it > > > to my needs > > > - sets the XDG Variables to point to the newly created directories > > > - next KDE login and here also all dirs are screwed up. > > > > > > If I then change all the standard dirs back to what I want from within KDE > > > (!) even Gnome seems to be happy with it and uses them. > > > > > > So - if you think it is needed to create standard dirs on startup be careful > > > and respect the users choice if there already exists a reasonable setup... > > > > You are doing it wrong actually. If you have your own setup of directories > > (i.e. non-standard), you need to provide your own ~/.config/user-dirs.conf, > It's user-dirs.dirs here, and tuning default paths from within kde > systemsettings modifies that file. Nevertheless Gnome on first startup > (really the first time it is run, not on every login like in that ubuntu > FAQ) ignores those settings. I saw this several times when I played around > with Gnome on a different User account. AFAIR the last time I tested was > with GNOME 3.12. Then it is a Gnome bug. What I proposed is to use the xdg-user-dirs-update tool, which shall correctly do what you want.
We discussed this and decided it would be preferred if this was implemented upstream (Plasma 5 presents a good opportunity).
(In reply to Michael Palimaka (kensington) from comment #10) > We discussed this and decided it would be preferred if this was implemented > upstream (Plasma 5 presents a good opportunity). Ok, just not to lose track on this - was somebody from upstream involved in this discussion? Is there an upstream bug report?