themaninthesuitcase / gimp-startrail-compositor

36 stars 12 forks source link

Default to the XDG "Pictures" directory (if it exists) #11

Open berrange opened 5 years ago

berrange commented 5 years ago

Look for the XDG "Pictures" directory, and use that as the default for light / dark frames, rather than whatever the GIMP working directory is.

If the XDG dir can't be determined, default to the current working directory. This will be the case on non-Linux hosts.

This is an alternative to pull request #6

themaninthesuitcase commented 5 years ago

What OS's has this been checked against? I don't have access to a windows setup I can test upon.

berrange commented 5 years ago

I only have access to GIMP on Linux, specifically I've tested with GIMP 2.10.8 on Fedora 29

themaninthesuitcase commented 5 years ago

screenshot 2019-01-23 at 21 50 29

Doesn't appear that this works cross platforms.

berrange commented 5 years ago

I'm not familiar with OS-X - what is that "MacOS" directory it has ended up selecting ? Is that the root of the filesystem ? I guess that is probably the current working directory of GIMP as it likely took the fallback code path. IOW, it probably is working as intended, but none the less not being useful. I wonder if there's a better directory to try to default to. Does OS-X normally have a $HOME env variable set ? If so we could default to that.