desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Unable to install on Fedora Atomics

Open telorand opened this issue 1 year ago • 1 comments

=================================
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?

telorand avatar Jul 09 '24 05:07 telorand

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.

Cwavs avatar Feb 14 '25 12:02 Cwavs

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.

NotYourAlejandro avatar Aug 01 '25 16:08 NotYourAlejandro