pop-os / system76-driver

System76 Driver for Pop!_OS
Other
111 stars 28 forks source link

Launching system76-driver using sudo from the terminal stores logs in /root instead of ~/ #187

Open bflanagin opened 3 years ago

bflanagin commented 3 years ago

Distribution (run cat /etc/os-release):

NAME="Pop!_OS" VERSION="20.10" ID=pop ID_LIKE="ubuntu debian" PRETTY_NAME="Pop!_OS 20.10" VERSION_ID="20.10" HOME_URL="https://pop.system76.com" SUPPORT_URL="https://support.system76.com" BUG_REPORT_URL="https://github.com/pop-os/pop/issues" PRIVACY_POLICY_URL="https://system76.com/privacy" VERSION_CODENAME=groovy UBUNTU_CODENAME=groovy LOGO=distributor-logo-pop-os

Related Application and/or Package Version (run apt policy $PACKAGE NAME):

system76-driver

Issue/Bug Description:

When launching system76-driver from the terminal using sudo system76-driver the log archive is stored in /root instead of the current users home directory.

Expected behavior:

The log file should be stored in ~/ regardless to how we launch the app with root privileges.

Other Notes: This might be a case where my knowledge of how privileges are elevated within the UI is lacking but maybe there is a way around the issue.