Gvm-start uses xdg-open to start browser as root

gvm-start is used to start all the daemons and opens the default browser at the end with “xdg-open “${URL}” 2>/dev/null >/dev/null &”

The problem here is, that the browser ist startet as root which is not recommended and that root does not have an environment on my Kali Linux.

Workaround:

I patched gvm-start and changed the line that starts the browser from

xdg-open “${URL}” 2>/dev/null >/dev/null &

to

runuser -u “$SUDO_USER” xdg-open “${URL}” 2>/dev/null >/dev/null &

1 Like

Hi, the gvm-start script is not developed nor maintained by Greenbone. Therefore it isn’t included in any of our repos. Please report the issue at https://bugs.kali.org if you want to get it addressed.

3 Likes

Thnx, moved to kali forum

2 Likes