Slightly improve Linux support for the desktop app #86
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For context: I started writing an Arch Linux package for proxyscotch, but quickly hit a roadblock: if
proxyscotch-desktop
is installed in/usr/bin
, then at runtime it tries to creates its certificates in/usr/bin/data
, which is obviously wrong.So, I looked into doing what I wanted: install the binary and icon system-wide, but use the user's home directory to store app data (certificates).
In the end, I changed the following things:
~/.local/share/proxyscotch/cert.pem
(Linux) or~/Library/Application Support/proxyscotch/cert.pem
(macOS) orLocalAppData\proxyscotch\proxy.pem
(Windows)/usr/local/share/proxyscotch
and/usr/share/proxyscotch
(Linux),/Library/Application Support/proxyscotch
(macOS),RoamingAppData\proxyscotch
andProgramData\proxyscotch
(Windows)notify-send
command (much simpler than adding a library that implements DBus notifications...)I believe all these changes should be backward-compatible. Please let me know of any issue, or if you would prefer me to split this into several smaller PRs.