Take the 2-minute tour ×

To open a web browser, I currently use xdg-open inside a python app. However the web browser steals focus. The Python webbrowser module is unreliable so how could I use xdg-open without the browser stealing focus?


share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Try adding the -iconic flag to your command, even though some window managers may choose to ignore it but I believe Unity acknowledges it.

share|improve this answer
add comment

Your Answer


