mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-25 02:04:23 +00:00
Linux: changed the path returned by File::userApplicationDataDirectory to be based on XDG_CONFIG_HOME if available.
This commit is contained in:
parent
a62d0b5d44
commit
a8b41cb717
2 changed files with 2 additions and 2 deletions
|
|
@ -292,7 +292,7 @@ namespace ProjectSettingsTreeClasses
|
|||
String getRenamingName() const override { return getDisplayName(); }
|
||||
String getDisplayName() const override { return "Modules"; }
|
||||
void setName (const String&) override {}
|
||||
bool isMissing() override { return false; }
|
||||
bool isMissing() override { return false; }
|
||||
Icon getIcon() const override { return Icon (getIcons().graph, getContrastingColour (Colours::red, 0.5f)); }
|
||||
void showDocument() override { showSettingsPage (new SettingsComp (project)); }
|
||||
|
||||
|
|
|
|||
|
|
@ -179,7 +179,7 @@ File File::getSpecialLocation (const SpecialLocationType type)
|
|||
case userMoviesDirectory: return resolveXDGFolder ("XDG_VIDEOS_DIR", "~");
|
||||
case userPicturesDirectory: return resolveXDGFolder ("XDG_PICTURES_DIR", "~");
|
||||
case userDesktopDirectory: return resolveXDGFolder ("XDG_DESKTOP_DIR", "~/Desktop");
|
||||
case userApplicationDataDirectory: return File ("~");
|
||||
case userApplicationDataDirectory: return resolveXDGFolder ("XDG_CONFIG_HOME", "~");
|
||||
case commonDocumentsDirectory:
|
||||
case commonApplicationDataDirectory: return File ("/var");
|
||||
case globalApplicationsDirectory: return File ("/usr");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue