FLTK logo

Re: [fltk/fltk] Matt: accumulated Fl_Preferences issues, are there more? (Issue #303)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

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.

Porting would be done calling

mkdir ~/.local/share/Vendor/
mv ~/.fltk/Vendor/Application/ ~/.local/share/Vendor/
mv ~/.fltk/Vendor/ ~/.config/

Did I catch everything?


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>

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.