Registered Member
|
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 |
Registered Member
|
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 |
Registered Member
|
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.
|
Registered Member
|
Thanks for the information.
graham |
Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell