Reply to topic

Where are KDE Plasma apps supposed to store settings

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

 
Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Garthhh, Google [Bot], ostroffjh, Sogou [Bot], Yahoo [Bot]