This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Where are KDE Plasma apps supposed to store settings

Tags: None
(comma "," separated)
kde newbie
Registered Member
Posts
7
Karma
0
Hi
I am developing an app that will run on KDE Plasma.
Where are KDE Plasma apps supposed to store user settings and preferences? Is there some standard place?
thanks
graham
kde newbie
Registered Member
Posts
7
Karma
0
On a related note, is there any environment variable that can reliably tell me if I am running KDE Plasma? My app is cross platform and I can detect Mac and Windows reliably, but was wondering about Linux platforms like KDE.
graham
airdrik
Registered Member
Posts
1854
Karma
5
OS
For storing the settings, there's a XDG Freedesktop standard for that. Basically store settings in $XDG_CONFIG_HOME (defaults to ~/.config/<appName>) and other data files in $XDG_DATA_HOME (defaults to ~/.local/share/<appName>).

The $DESKTOP_SESSION variable should be set to indicate which desktop session you are using. Kde's Plasma desktop is identified by the string 'plasma'.


airdrik, proud to be a member of KDE forums since 2008-Dec.
kde newbie
Registered Member
Posts
7
Karma
0
Thanks for the information.
graham


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell