diff options
Diffstat (limited to 'usr/share/mageiawelcome/mageiawelcome.py')
-rw-r--r-- | usr/share/mageiawelcome/mageiawelcome.py | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/usr/share/mageiawelcome/mageiawelcome.py b/usr/share/mageiawelcome/mageiawelcome.py index 3899859..374cd32 100644 --- a/usr/share/mageiawelcome/mageiawelcome.py +++ b/usr/share/mageiawelcome/mageiawelcome.py @@ -126,14 +126,13 @@ def main(): elif msg.startswith("http"): os.system("xdg-open " + msg) elif msg == "irc": - if os.path.exists("/usr/bin/xchat-gnome"): - os.system("/usr/bin/xchat-gnome &") - elif os.path.exists("/usr/bin/xchat"): - os.system("/usr/bin/xchat &") - elif os.path.exists("/usr/bin/konversation"): - os.system("/usr/bin/konversation &") - elif os.path.exists("/usr/bin/quassel"): - os.system("/usr/bin/quassel &") + irc_client = get_irc_client() + if irc_client == "none": + if desktop == "KDE": + subprocess.Popen("gurpmi konversation", shell=True) + else: + subprocess.Popen("gurpmi hexchat", shell=True) + else: os.system(irc_client) elif msg.startswith("run"): args = shlex.split(msg) args.pop(0) |