desktop
desktop copied to clipboard
Unable to install on Fedora Atomics
=================================
Private Internet Access Installer
=================================
Installing PIA for x86_64, system is x86_64
[sudo] password for telorand:
✔ Added group piavpn
✔ Added group piahnsd
✔ Copied Private Internet Access files
✔ Allow non-root /opt/piavpn/bin/pia-unbound to bind to privileged ports
✔ Created var folder
cp: cannot create regular file '/usr/share/pixmaps/piavpn.png': Read-only file system
Due to the fact that Fedora Atomics and derivative distros are generally immutable, the .run script fails when it tries to install the icons to /usr/share/pixmaps, as that directory is read-only; there's even a note in the preceding lines stating that this isn't ideal. Likewise, installing the .desktop entry would also fail (if it could get to that step), because /usr/share/applications is read-only. Note that /opt from the above output is "mutable," because it's actually a symlink from /var (one of the only mutable directories).
The primary mutable directory in several immutable distros is /var. Can the install script be modified to work only with that directory?
An alternative could be to provide an rpm package. This could be layered with rpm-ostree or exported from distrobox. Neither is an amazing solution, but I think those are good ways to do it.
While I don't have a pull request for this, I believe another solution would be to install PIA within user-mode so it doesn't require root. However, I also recognize that would remove the capability for system-wide installations, so perhaps a user-mode installation could be placed behind a --user cli arg.