>From KillerKiwi.

        def get_desktop_enviroment(self):
                # Taken from orignal xdg scripts
                if os.getenv("GNOME_DESKTOP_SESSION_ID") != None and 
os.getenv("GNOME_DESKTOP_SESSION_ID") != "":
                        return "GNOME"
                if os.getenv("KDE_FULL_SESSION") != None and 
os.getenv("KDE_FULL_SESSION") == "true":
                        return "KDE"
 
                try:
                        if Popen(["xprop", "-root", "_DT_SAVE_MODE"], 
stdout=PIPE, stderr=open(os.devnull, 
"w")).communicate()[0].strip().lower().count("xfce") > 0:
                                return "XFCE"
                except:
                        pass
 
                return "CLI"

-- 
Dependencies and Desktop Environment neutral system
https://bugs.launchpad.net/bugs/245057
You received this bug notification because you are a member of Rapache
Developers, which is subscribed to Remote Apache Management tool .

Status in rapache: Confirmed

Bug description:
We should define a clearer list of dependencies and try to purge all 
desktop-environment specific code.
We currently use gksudo and (soon) gnome-open. We shuold understand how many 
dependencies we need to use that kind of code.

_______________________________________________
Mailing list: https://launchpad.net/~rapache-devel
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~rapache-devel
More help   : https://help.launchpad.net/ListHelp

Reply via email to