Skip to content

Commit

Permalink
fix /etc/profile.d scripts
Browse files Browse the repository at this point in the history
be silent, do not output stderr in case systemd-detect-virt writes to stderr

as this can break Qubes UpdatesProxy

https://forums.whonix.org/t/hide-hardware-information-service-running-in-sys-whonix-breaks-apt-and-update-torbrowser/18279
  • Loading branch information
adrelanos committed Feb 2, 2024
1 parent 5f39c80 commit 1810afa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion etc/profile.d/20_kde_screen_locker_disable_in_vms.sh
Expand Up @@ -16,7 +16,7 @@ if [ "$XDG_SESSION_TYPE" = "tty" ]; then
fi

if command -v systemd-detect-virt >/dev/null ; then
result="$(systemd-detect-virt)"
result="$(systemd-detect-virt 2>&1)"
else
true "$0: INFO: systemd-detect-virt not found. Stop."
return 0
Expand Down
2 changes: 1 addition & 1 deletion etc/profile.d/20_power_savings_disable_in_vms.sh
Expand Up @@ -15,7 +15,7 @@ if test -f /usr/share/qubes/marker-vm ; then
fi

if command -v systemd-detect-virt >/dev/null ; then
result="$(systemd-detect-virt)"
result="$(systemd-detect-virt 2>&1)"
else
$output_cmd "$0: INFO: systemd-detect-virt not executable found. Stop."
return 0
Expand Down
2 changes: 1 addition & 1 deletion etc/profile.d/20_software_rendering_in_vms.sh
Expand Up @@ -4,7 +4,7 @@
## See the file COPYING for copying conditions.

if command -v systemd-detect-virt >/dev/null ; then
result="$(systemd-detect-virt)"
result="$(systemd-detect-virt 2>&1)"
## result example:
## oracle
else
Expand Down

0 comments on commit 1810afa

Please sign in to comment.