Skip to content

Commit

Permalink
Merge pull request #12 from pauliesnug/main
Browse files Browse the repository at this point in the history
add a very bad linux fix but it still work so whatveer!!!
  • Loading branch information
NotNite authored Jan 8, 2025
2 parents fe6b27f + 951affa commit 7a8ec0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ Nightly builds on GitHub Actions can be found [here](https://github.com/moonligh
## Known issues

- Linux installations are only detected if they are in `~/.local/share`.
TEMPORARY FIX: use `MOONLIGHT_DISCORD_SHARE_LINUX` in place of `~/.local/share` and moonlight will scan there.
3 changes: 2 additions & 1 deletion crates/libmoonlight/src/installer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ impl Installer {

"linux" => {
let home = std::env::var("HOME").unwrap();
let local_share = PathBuf::from(home).join(".local/share");
let local_share = std::env::var_os("MOONLIGHT_DISCORD_SHARE_LINUX").map(PathBuf::from)
.unwrap_or(PathBuf::from(home).join(".local/share"));

let dirs = vec![
"Discord",
Expand Down

0 comments on commit 7a8ec0b

Please sign in to comment.