Skip to content

Commit

Permalink
RMG-Core: change default screenshot directory on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 committed Jan 25, 2024
1 parent 2d3514d commit 84681fd
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions Source/RMG-Core/Directories.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -428,15 +428,8 @@ std::filesystem::path CoreGetDefaultScreenshotDirectory(void)
directory = get_appdata_directory("Screenshots");

#else
directory = get_command_output("xdg-user-dir PICTURES");
if (!directory.empty())
{
directory += "/RMG";
}
else
{
directory = get_var_directory("XDG_PICTURES_DIR", "/RMG", "HOME", "/Pictures/RMG");
}
directory = CoreGetDefaultUserDataDirectory();
directory += "/Screenshots";
#endif // _WIN32
}
return directory.make_preferred();
Expand Down

0 comments on commit 84681fd

Please sign in to comment.