Changeset View
Changeset View
Standalone View
Standalone View
x11/nvidia-settings/files/nvidia-settings.in
- This file was added.
#!/bin/sh | |||||
[ -e "%%LOCALBASE%%/libexec/nvidia-settings-hybrid" ] && exec %%LOCALBASE%%/libexec/nvidia-settings-hybrid "$@" | |||||
exec %%PREFIX%%/libexec/nvidia-settings "$@" | |||||
monwarez_mailoo.org: Here it seems that `exec %%PREFIX%%/libexec/nvidia-settings "$@"` is always called, even when… | |||||
Done Inline Actionsexec replaces shell process with the new process, therefore the script does not continue and there is no superfluous shell process once libexec/nvidia-settings(-hybrid) is running. theron.tarigo_gmail.com: `exec` replaces shell process with the new process, therefore the script does not continue and… |
Here it seems that exec %%PREFIX%%/libexec/nvidia-settings "$@" is always called, even when there is %%LOCALBASE%%/libexec/nvidia-settings-hybrid
Shouldn't this be
[ -e "%%LOCALBASE%%/libexec/nvidia-settings-hybrid" ] && exec %%LOCALBASE%%/libexec/nvidia-settings-hybrid "$@" || exec %%PREFIX%%/libexec/nvidia-settings "$@"
Instead ?