stdcerr
stdcerr

Reputation: 15628

How Do I remember window sizes for KDE/X11 applications

Is there some kind of standard where to store the window size to when the application closes and where to load it from when the application starts? I'm wondering how I should store width&height parameters for a Qt application I'm working on.

Upvotes: 0

Views: 252

Answers (1)

NP Rooski  Z
NP Rooski Z

Reputation: 3657

OS X has defaults system but for Linux I'm not aware of any persistent or dynamic store (e.g. scutil) like that.

Freedesktop.org has config-data-dir but not sure entirely its just specification of location or the format too.

Linux usually store its stuff in config files, so my only suggestion is to create your config file (XML, INI or JSON formatted) in ~/.config/appname/settings.xml and write data to it while closing application and read data while opening. So best to access configuration file is using QSettings API

Upvotes: 1

Related Questions