Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multimc: remove unneeded flag #96192

Merged
merged 1 commit into from Nov 27, 2020
Merged

Conversation

Artturin
Copy link
Member

Motivation for this change

--add-flags "-d \$HOME/.multimc/" was needed when the package was first added in 2015 since the default location was in the nix store.
https://github.com/MultiMC/MultiMC5/blob/db926a546e2c58227ab1dcb129b056213d33d6f5/application/MultiMC.cpp#L129

nowadays it uses "$XDG_DATA_HOME" or "/.local/share" by default so the option isn't needed.
https://github.com/MultiMC/MultiMC5/blob/develop/application/MultiMC.cpp#L252

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@ofborg ofborg bot requested a review from cleverca22 August 24, 2020 18:09
@Artturin Artturin changed the title multimc: remove unneeded flag multimc: remove unneeded flag & change upstream Aug 26, 2020
@Artturin Artturin changed the title multimc: remove unneeded flag & change upstream multimc: remove unneeded flag Aug 26, 2020
@Artturin
Copy link
Member Author

oops i was thinking of my other pr

Copy link
Member

@solson solson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've been going through my home directory seeing what I could make follow the XDG basedir spec, and I was just about to submit this exact same pull request. I can confirm that multimc now does the right thing and uses ~/.local/share/multimc on my machine.

The one downside is that the update will confuse every user who doesn't know they need to move the directory or tell multimc where to look. Is there some way we can ease the transition?

@SuperSandro2000
Copy link
Member

Result of nixpkgs-review pr 96192 run on x86_64-linux 1

1 package built:
  • multimc

@SuperSandro2000 SuperSandro2000 merged commit 639017c into NixOS:master Nov 27, 2020
@Artturin Artturin deleted the change-multimc branch November 28, 2020 07:17
@zyansheep
Copy link
Contributor

I almost had a heart attack when I updated and all my instances weren't there. Thank god for github otherwise I would be very sad :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants