Bug 195074 - settings in $HOME/.kde/config/kdeglobals doesn't respect XDG_DATA_DIRS
Summary: settings in $HOME/.kde/config/kdeglobals doesn't respect XDG_DATA_DIRS
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 4.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-03 09:44 UTC by Benoit des Ligneris
Modified: 2019-12-09 13:45 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benoit des Ligneris 2009-06-03 09:44:06 UTC
Version:            (using KDE 4.0.5)
OS:                Linux
Installed from:    Ubuntu Packages



I'm on a ltsp setup, i can use different .desktop files depending of the user, i set XDG_DATA_DIRS to set desktop file to be used for the users. In my $HOME/.kde/config/kdeglobals i set BrowserApplication[$e]=firefox.desktop but kde doesn't use the environment variable XDG_DATA_DIRS to launch the right firefox.desktop.

I think that kde should look at XDG_DATA_DIRS to launch the applications.

https://bugs.launchpad.net/ubuntu/+source/kde4libs/+bug/379053
Comment 1 Erik Quaeghebeur 2018-02-01 08:33:38 UTC
Unless this is still present in current versions, this should be closed.
Comment 2 Shmerl 2019-09-06 07:00:42 UTC
Interestingly, Debian recently removed kde4libs, which was one of the lingering causes for usage of $HOME/.kde

https://tracker.debian.org/pkg/kde4libs

But something still creates $HOME/.kde/config/kdeglobals for me (it's the only file remaining there now).

KDE Plasma 5.14.5.
Comment 3 Erik Quaeghebeur 2019-09-06 07:29:33 UTC
(In reply to Shmerl from comment #2)
> But something still creates $HOME/.kde/config/kdeglobals for me (it's the
> only file remaining there now).
See Bug 405750.
(This is off-topic for this bug.)
Comment 4 Shmerl 2019-09-06 15:11:33 UTC
(In reply to Erik Quaeghebeur from comment #3)
> (In reply to Shmerl from comment #2)
> > But something still creates $HOME/.kde/config/kdeglobals for me (it's the
> > only file remaining there now).
> See Bug 405750.
> (This is off-topic for this bug.)

Ah, I see. Thanks. I commented there. Not sure why there is some resistance to actually fixing this for good.
Comment 5 Nate Graham 2019-12-06 19:34:40 UTC
Bug 405750 is the cause, and the issue here has been fixed in Frameworks 5.
Comment 6 Shmerl 2019-12-08 01:28:46 UTC
(In reply to Nate Graham from comment #5)
> Bug 405750 is the cause, and the issue here has been fixed in Frameworks 5.

I meant I was wondering, why there is some resistance to fix #405750 for good. Or you mean that one was actually fixed in latest Frameworks 5?
Comment 7 Nate Graham 2019-12-08 19:20:45 UTC
Bug 405750 cannot be fixed because then it would break the remaining KDE4 apps that some people are still using (believe it or not). Once nobody is using any KDE4-era apps anymore, then the issue will finally go away. But until that time, we can't change the config file path without breaking old apps.
Comment 8 Shmerl 2019-12-08 19:34:00 UTC
(In reply to Nate Graham from comment #7)
> Bug 405750 cannot be fixed because then it would break the remaining KDE4
> apps that some people are still using (believe it or not). Once nobody is
> using any KDE4-era apps anymore, then the issue will finally go away. But
> until that time, we can't change the config file path without breaking old
> apps.

I got that part, but I commented how that can be handled without breaking them, while allowing users to avoid cluttering $HOME. I.e. make it a runtime switch. Those who need such old applications (few users likely), will flip the switch, while the rest (majority) can avoid cluttering $HOME by default.
Comment 9 Shmerl 2019-12-08 19:36:54 UTC
And if you really think the majority is using such old KDE4 applications, and only minority is not, you can make the opposite - by default it will be enabled, and those who don't want to clutter $HOME can opt out by flipping the switch.
Comment 10 Nate Graham 2019-12-09 13:45:53 UTC
Making it a user-facing option doesn't make sense IMO. No regular user cares about a hidden file created by obsolete software not being in the correct hidden folder. This is the kind of option that adds visual clutter to the UI and mental clutter to people trying to find things that are more useful.

Let's just wait until Qt 6 rolls around and then we can put this long national nightmare behind us. :)