Skip to content
Snippets Groups Projects
Commit 54f4f160 authored by nimrod's avatar nimrod
Browse files

Improvement for notifying from a Toolbox container.

parent 79a516e0
Branches
No related tags found
No related merge requests found
...@@ -32,8 +32,8 @@ else ...@@ -32,8 +32,8 @@ else
hostname="$(sysctl -a 2>/dev/null | awk -F '=' '/^kern[a-z]*\.hostname/ {print $2}')" hostname="$(sysctl -a 2>/dev/null | awk -F '=' '/^kern[a-z]*\.hostname/ {print $2}')"
fi fi
# Get the host' hostname in case # Get the host' hostname in case it's a toolbox container.
if [ "$hostname" = 'toolbox' ] if [ "$hostname" = 'toolbox' ] && [ -x /usr/libexec/flatpak-xdg-utils/flatpak-spawn ]
then then
hostname="$(/usr/libexec/flatpak-xdg-utils/flatpak-spawn --host hostname)" hostname="$(/usr/libexec/flatpak-xdg-utils/flatpak-spawn --host hostname)"
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment