kkimurak / ssl-setup

Bash script that setup the official RoboCup-SSL tools with required packages ( https://github.com/RoboCup-SSL/ )
4 stars 0 forks source link

Launching browser using xdg-open fails #24

Closed kkimurak closed 4 years ago

kkimurak commented 5 years ago

overview In the end of script, there's a change to open some web page automatically using xdg-open.
Currently this command is run as root, so it will return error message like this :

Running Firefox as root in a regular user's session is not supported. 

Solution use same method to build ssl-tools

kkimurak commented 4 years ago

in some other case, xdg-open will fail. (e.g. no browser installed : xfce desktop...)

kkimurak commented 4 years ago

Install firefox anyway? (because it is default on GNOME - most of beginner use) Or provide interface to select other browser (e.g. chromium, opera, lynx, and so on...) ?

kkimurak commented 4 years ago

idea : check desktop environment using XDG_DESKTOP_SESSION
If xfce, install midori (it may be default browser for xfce)