Re: [fltk/fltk] Matt: accumulated Fl_Preferences issues, are there more? (Issue #303)
Matthias Melcher
Jan 22, 2022
@Albrecht-S Thanks again for the link. I had been collecting general use cases from stack overflow, but reading through the specs again, well, those cases are simply wrong. So the strategy is now: check if a prefs file or data directory exists in ~/.fltk/Vendor/Application, we will use that for everything. If not, we use $XDG_DATA_HOME/Vendor/Application/ (not fltk) for user data files, and $XDG_CONFIG_HOME/Vendor/Application.prefs are used for preferences.
As a precaution, I check for ~/, $HOME/, and ${HOME}/ at the start and replace them. I'll truncate at a possible :. If either of the environment variables are not set, I will use their respective default.
— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: <fltk/fltk/issues/303/1019370835@github.com>
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.