Checking environmental variables looking for DISPLAY or similar could work for remote session, but can still be a problem for those users with a non-graphical default browser and run launchpadlib by mean of a terminal console (i.e. gnome-terminal, or konsole).
Checking environmental variables looking for DISPLAY or similar could work for remote session, but can still be a problem for those users with a non-graphical default browser and run launchpadlib by mean of a terminal console (i.e. gnome-terminal, or konsole).