hoppscotch / proxyscotch

📡 A simple proxy server created for https://hoppscotch.io
https://hoppscotch.io
MIT License
360 stars 93 forks source link

Slightly improve Linux support for the desktop app #86

Open Schnouki opened 8 months ago

Schnouki commented 8 months ago

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:

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.