Get True Home Path from possible symbolic link (Important for Atomic Distros like Fedora Silverblue or Bazzite) #596

Closed
opened 2026-04-05 16:21:44 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @Donad678 on 1/18/2025

By default Distributions based on Fedora Silverblue (like Bazzite) have home mounted under "/var/home/username". But the path for Home that can be retrieved through environment variables returns "/home/username". This confuses the install function for VRCX as when it checks the location of the AppImage it finds it under "/var/home/username/Applications/VRCX.AppImage" and not "/home/username/Applications/VRCX.AppImage".

The installation in this case would work on first run but on a second run it breaks

I adjusted the code in the installVRCX() function to first get the actual Path of the users home directory and then use that going forward, I tested it on my local system and inside a distrobox (to test if it can deal with both, home under /var/home and under /home) and it worked in both cases, it should work on other distributions aswell that mount home under a weird path

error message

It fixes this error

*Originally created by @Donad678 on 1/18/2025* By default Distributions based on Fedora Silverblue (like Bazzite) have home mounted under "/var/home/username". But the path for Home that can be retrieved through environment variables returns "/home/username". This confuses the install function for VRCX as when it checks the location of the AppImage it finds it under "/var/home/username/Applications/VRCX.AppImage" and not "/home/username/Applications/VRCX.AppImage". The installation in this case would work on first run but on a second run it breaks I adjusted the code in the installVRCX() function to first get the actual Path of the users home directory and then use that going forward, I tested it on my local system and inside a distrobox (to test if it can deal with both, home under /var/home and under /home) and it worked in both cases, it should work on other distributions aswell that mount home under a weird path ![error message](https://github.com/user-attachments/assets/f43ec733-06ba-45a2-b468-026558ccd328) It fixes this error
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/VRCX#596