-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Autostart doesn't work on NixOS #1975
Comments
The buggy code is in
I think
|
@YizhePKU I suspect your solution is correct. If you have a development environment set up and you are up for it, feel free to submit a pull request. If not, I can do that. |
I tested my solution locally and it works nicely. Didn't run the test suite though, this should be fine? |
* Fix autostart write path (#1975) * Fix formating
Flameshot version
Tested on both master and v0.11.1
Describe the bug
Autostart doesn't work.
On NixOS, if the directory
~/.config/autostart
doesn't exist, Flameshot will try to write the desktop file to somewhere in/nix/store
. However,/nix/store
is read-only, so that fails.To Reproduce
Install Flameshot on NixOS. Launch it with
strace flameshot 2>&1 | grep open
so that we can observe where it tries to write files. When flippingLaunch at startup
in configuations, strace will print some like this:Expected behavior
The desktop file should be written to
~/.config/autostart
, creating the directory if necessary.System Information
NixOS 21.05
The text was updated successfully, but these errors were encountered: