summaryrefslogtreecommitdiffstats
path: root/usr/share/mageiawelcome/helpers.py
diff options
context:
space:
mode:
Diffstat (limited to 'usr/share/mageiawelcome/helpers.py')
-rw-r--r--usr/share/mageiawelcome/helpers.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/usr/share/mageiawelcome/helpers.py b/usr/share/mageiawelcome/helpers.py
index 1ad236b..3695c39 100644
--- a/usr/share/mageiawelcome/helpers.py
+++ b/usr/share/mageiawelcome/helpers.py
@@ -19,6 +19,15 @@ def get_desktop_name(x):
'03WindowMaker':'WindowMaker',
'09Fvwm2':'Fvwm2',
}.get(x,'Other')
+
+def get_irc_client():
+ if os.path.exists("/usr/bin/hexchat"): irc_client = "/usr/bin/hexchat &"
+ elif os.path.exists("/usr/bin/xchat-gnome"): irc_client = "/usr/bin/xchat-gnome &"
+ elif os.path.exists("/usr/bin/xchat"): irc_client = "/usr/bin/xchat &"
+ elif os.path.exists("/usr/bin/konversation"): irc_client = "/usr/bin/konversation &"
+ elif os.path.exists("/usr/bin/quassel"): irc_client = "/usr/bin/quassel &"
+ else: irc_client = "none"
+ return irc_client
def is_installed(name):
return os.WEXITSTATUS(os.system('rpm -q --quiet ' + name))