Indeed, inasmuch as Mac software packaged in “app” format is expected to be 
pretty much self-contained, it may not make sense for such software to consult 
$XDG_DATA_DIRS or $XDG_CONFIG_DIRS.  Their default data and configuration would 
normally be packaged together with them, instead.  User-specific data and 
configuration can still be read from $XDG_DATA_HOME and $XDG_CONFIG_HOME, 
however, and can still override built-in defaults.

However, a Mac app that wants to rely on XDG basedir and standard tools 
supporting that also has the alternative of using a wrapper script or similar 
mechanism to set appropriate (internal pointing) values of $XDG_DATA_DIRS and 
$XDG_CONFIG_DIRS.  That seems a bit of a hack, but not necessarily 
inappropriate under the circumstances.  The self-containment of this 
installation format is fundamentally at odds with the basedir concept of 
multiple applications sharing system-wide configuration and data locations.


Regards,

John Bollinger


From: xdg <xdg-boun...@lists.freedesktop.org> On Behalf Of Chanslor Rosenthal
Sent: Tuesday, April 27, 2021 1:06 PM
To: xdg@lists.freedesktop.org
Subject: Re: RCF: Basedir specification for non-Linux

Caution: External Sender. Do not open unless you know the content is safe.

Forwarding my own message to the list because my client failed to reply-to the 
list. I am embarrassed. Apologies to elektra@markus-raab!


Begin forwarded message:
From: Chanslor Rosenthal <chans...@icloud.com<mailto:chans...@icloud.com>>
Date: April 27, 2021 at 11:03:23 AM PDT
To: elek...@markus-raab.org<mailto:elek...@markus-raab.org>
Subject: Re: RCF: Basedir specification for non-Linux
For what it's worth, I do not (frequently) port to Mac, but I *do* frequently 
develop for Linux on Mac. I work on an outdated MBP, test against my Debian 
server and Manjaro desktop, a newer Mac, and sometimes other Linux devices.

I mention this because, when I do that, I almost always leave the spec 
unchanged *for user files*. Things don't get tricky until you arrive at 
executables.

Things get *very* tricky when you arrive at executables. "Straight" Unix 
programs are, for the most part, where they are supposed to be, but desktop Mac 
programs work more like an AppImage and do not live anywhere nor have anything 
resembling a desktop entry.

Special-casing it may be the only good solution. Some kind of parser would 
probably be the easiest solution, a companion package that locates Mac 
locations from FreeDesktop-specified paths and envvars.

Just my two cents. Other people do much more intensive work porting full 
desktop apps and etc.

________________________________

Email Disclaimer: www.stjude.org/emaildisclaimer
Consultation Disclaimer: www.stjude.org/consultationdisclaimer
_______________________________________________
xdg mailing list
xdg@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/xdg

Reply via email to