Bug 511892 - Make more use of xdg-user-dirs
Summary: Make more use of xdg-user-dirs
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: kdelibs
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Than Ngo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 705086
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-15 14:35 UTC by Oliver Henshaw
Modified: 2016-02-12 16:36 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-12 16:36:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
KDE Software Compilation 203472 0 None None None Never
KDE Software Compilation 203479 0 None None None Never
KDE Software Compilation 203485 0 None None None Never
KDE Software Compilation 203495 0 None None None Never

Description Oliver Henshaw 2009-07-15 14:35:22 UTC
Description of problem:

I would like the xdg user dirs (particularly Pictures, Music, Video) to be more visible in KDE. Particularly I would like quick access to them from the Dolphin Places panel and from file dialogs.

I see "Documents[$e]=$(xdg-user-dir DOCUMENTS)" is already in kdeglobals, would it make sense to add other xdg user directories there? I don't know how much the Documents path is used throughout kde - would a hypothetical "Music[e]=" be just an arbitrary path or could it easily be as well-integrated as Documents?


Version-Release number of selected component (if applicable):

kde-settings-4.2-10.20090430svn.fc11.noarch
kdebase-4.2.4-2.fc11.i586
xdg-utils-1.0.2-8.20081121cvs.fc11.noarc

Comment 1 Jaroslav Reznik 2009-07-15 19:17:12 UTC
Hi Oliver!
I'd like to see more usage of XDG user dirs in KDE. Actually I did some work on this topic. There's some support in Qt, I've reported some issue to them. Maybe it's time to resurrect this effort :D Or you can try to report it upstream.

Comment 2 Kevin Kofler 2009-07-16 18:49:44 UTC
Well, the xdg directory for music should just be the default in the Amarok and Juk collections (if it isn't already), likewise pictures in Digikam. Maybe we can do something with video in Dragon Player and Kaffeine, though they don't have a concept of collection.

What I find really annoying is Konqueror defaulting to Documents instead of Downloads when saving downloads, we probably need a code patch to fix that in Konqueror.

Comment 3 Lukáš Tinkl 2009-07-16 19:12:43 UTC
There's definitely room for improvement here. KDE already knows about these directories thru the KGlobalSettings[1] class (eg. KGlobalSettings::downloadPath()). I'm sure upstream will gladly accept patches :)

[1] http://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/classKGlobalSettings.html

Comment 4 Kevin Kofler 2009-07-16 22:14:07 UTC
Is setting:
[Paths]
Desktop[$e]=$(xdg-user-dir DESKTOP)
Documents[$e]=$(xdg-user-dir DOCUMENTS)
in kdeglobals still useful these days? I guess it still is for legacy KDE 3 apps, but for KDE 4 apps it seems to be just a useless process spawning.

Comment 5 Steven M. Parrish 2009-07-22 14:45:38 UTC
Thank you for taking the time to report this issue.

This is an issue that needs to be addressed by the upstream developers. Please report this at http://bugs.kde.org and then add the upstream report information to this report.  We will monitor the upstream report for a resolution to this issue, and will review any bug fixes that become available for consideration in future updates.

Setting status to NEEDINFO, and awaiting upstream bug report URL for tracking.

Thanks in advance.

-- 
Steven M. Parrish - KDE Triage Master
                  - PackageKit Triager
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 6 Oliver Henshaw 2009-08-11 22:05:09 UTC
I've filed a few upstream bugs about more/better use of xdg-user-dirs, which I've linked to this one.


I haven't filed a bug for:

* possible improvements in the base Qt/KDE implementation of xdg-user-dirs
  (I'm not sure what they would be, apart from perhaps choosing appropriate icons as I mentioned in the places sidebar bug. Perhaps I'll see some when I move to kde 4.3, which, from lxr searches, looks like it exposes the directories in System Settings -> About Me -> Paths)

* konqueror downloading to Documents instead of Downloads
  (not a regular konqueror user)

* whether $(xdg-user-dir DESKTOP) and $(xdg-user-dir DOCUMENTS) still need to be in kdeglobals
  (since I think these are fedora-specific settings)

Comment 7 Kevin Kofler 2009-08-11 22:24:03 UTC
> * konqueror downloading to Documents instead of Downloads
>   (not a regular konqueror user)

To me this looks like the most important issue to fix. I'm going to file an upstream bug for that if I can't find one already filed.

> * whether $(xdg-user-dir DESKTOP) and $(xdg-user-dir DOCUMENTS) still need to
>   be in kdeglobals (since I think these are fedora-specific settings)

Right, these are Fedora-specific settings (in kde-settings). As I said, I think they're unnecessary for current KDE 4 (because those dirs should be the default anyway), though kdelibs3 apps might still need them.

Comment 8 Kevin Kofler 2009-08-11 22:36:33 UTC
https://bugs.kde.org/show_bug.cgi?id=203495 filed for the Konqueror Downloads issue.

Comment 9 Jaroslav Reznik 2009-08-12 07:52:46 UTC
(In reply to comment #8)
> https://bugs.kde.org/show_bug.cgi?id=203495 filed for the Konqueror Downloads
> issue.  

I filled Qt issue for this - reply was, that there's no need for common downloads directory as every application is using different one. The support guy was Mac user so I've explained to him that in Linux world we use that one ;-)

Maybe now, while the development is more open they would accept my patch...

Comment 10 Steven M. Parrish 2009-09-13 00:15:14 UTC
Going to leave this open for the moment as a reminder for jreznik to keep pounding on the upstream folks.

-- 
Steven M. Parrish - KDE Triage Master
                  - PackageKit Triager
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 11 Steven M. Parrish 2009-09-29 14:38:24 UTC
To give us more time to resolve this going to rebase it to rawhide.

-- 
Steven M. Parrish - KDE Triage Master
                  - PackageKit Triager
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 12 Rex Dieter 2016-02-12 16:36:04 UTC
kde4 feature development is closed in general, so it's probably as good as it's going to get by now.


Note You need to log in before you can comment on or make changes to this bug.