common: Add a common function to retrieve the "search software" utility
authorJulien Lavergne <julien.lavergne@gmail.com>
Mon, 5 Jul 2010 20:50:12 +0000 (22:50 +0200)
committerJulien Lavergne <julien.lavergne@gmail.com>
Mon, 5 Jul 2010 20:50:12 +0000 (22:50 +0200)
src/common/detect_os.py

index aa320bb..f68bd7e 100644 (file)
@@ -34,14 +34,17 @@ if os_detection[0] == 'Ubuntu':
         config_lxdm = '/etc/xdg/lubuntu/lxdm/lxdm.conf'
         config_openbox_local = os.path.expanduser("~/.config/openbox/lubuntu-rc.xml")
         command_su = "gksu"
+        search_software = "gksu synaptic"
     else:
         config_lxdm = '/etc/xdg/lxdm/default.conf'
         config_openbox_local = os.path.expanduser("~/.config/openbox/lxde-rc.xml")
         command_su = "gksu"
+        search_software = "gksu synaptic"
 else:
     config_lxdm = '/etc/lxdm/lxdm.conf'
     config_openbox_local = os.path.expanduser("~/.config/openbox/lxde-rc.xml")
     command_su = "su-to-root -X -c"
+    search_software = "apt-leo"
 
 def get_lxdm_config():
     return config_lxdm
@@ -51,3 +54,6 @@ def get_openbox_config():
 
 def get_command_su():
     return command_su
+
+def get_search_software():
+    return search_software