openSUSE / SUSEPrime

Provide nvidia-prime like package for openSUSE
64 stars 11 forks source link

Fix: use full path in invoking prime-select #51

Closed mbologna closed 4 years ago

mbologna commented 4 years ago

Use the full path when invoking suse-prime in the corresponding systemd service unit file.

sndirsch commented 4 years ago

Hmm. Did this change actually fix an issue for you? I'm afraid this change may break things, if users use git and install prime-select to another location like /sbin ...

mbologna commented 4 years ago

Yes, without the patch I get:

Apr 08 19:10:53 x systemd[1]: /usr/lib/systemd/system/prime-select.service:7: Executable path is not absolute: prime-select systemd_call
sndirsch commented 4 years ago

Ok. Convinced! :-)

lemmy04 commented 4 years ago

...isn't /sbin just a link to /usr/sbin anyways?

mbologna commented 4 years ago

...isn't /sbin just a link to /usr/sbin anyways?

Not on my openSUSE Leap. What distro are you running?

lemmy04 commented 4 years ago

on RHEL it is since RHEL7, guess I never noticed that it isn't on OS...