Skip to content

Commit

Permalink
Minor tweaks + Update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
maddie480 committed Sep 28, 2023
1 parent 939e969 commit f7dc4a1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ and only contains the latest changes.
Its purpose is to be shown in Olympus when updating.

#changelog#
Fixed Olympus not starting up on Linux if installed using the previous stable
Added the ground work for the future Flatpak package
2 changes: 1 addition & 1 deletion sharp/CmdLaunch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public override string Run(string root, string args, bool force) {
// or string.Equals(Environment.GetEnvironmentVariable("container"), "flatpak");
if (File.Exists("/.flatpak-info")) {
if (!string.IsNullOrEmpty(args))
game.StartInfo.Arguments = string.Join(" ", game.StartInfo.FileName, args);
game.StartInfo.Arguments = string.Join(" ", "\"" + game.StartInfo.FileName + "\"", args);
else
game.StartInfo.Arguments = game.StartInfo.FileName;
game.StartInfo.FileName = Path.Combine(Program.RootDirectory, "flatpak-wrapper");
Expand Down
7 changes: 6 additions & 1 deletion src/finder.lua
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,12 @@ function finder.findLegendaryRoot()

-- As of the time of writing this, Legendary is only supported for Windows and Linux.
-- It follows XDG_CONFIG_HOME and ~/.config/legendary on all platforms.
local root = fs.joinpath(getLinuxConfigDir() or fs.joinpath(userOS == "Windows" and sharp.getEnv("USERPROFILE"):result(), ".config"), "legendary")
local root = fs.joinpath(
userOS == "Windows"
and fs.joinpath(sharp.getEnv("USERPROFILE"):result(), ".config")
or getLinuxConfigDir(),
"legendary"
)

if root then
local rootReal = fs.isDirectory(root)
Expand Down

0 comments on commit f7dc4a1

Please sign in to comment.