This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Set DESKTOP_SESSION, guessing which desktop is running (gnome, mate, kde,...)[1] | |
# Either source this file to set the env var, *or* eval the output of results. | |
# $ . desktop_session.sh # export DESKTOP_SESSION=gnome | |
# $ eval $( desktop_session.sh -p ) | |
# Optionally use "-u" to unset DESKTOP_SESSION_ID, if causing problems [2] | |
# | |
# [1] https://netbeans.org/bugzilla/show_bug.cgi?id=227754 | |
# [2] http://wiki.netbeans.org/FaqCplusPlusRemoteSocketException |