summaryrefslogtreecommitdiffstats
path: root/src/service-discovery-applet.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/service-discovery-applet.in')
-rwxr-xr-xsrc/service-discovery-applet.in21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/service-discovery-applet.in b/src/service-discovery-applet.in
index c948c34..ee0c013 100755
--- a/src/service-discovery-applet.in
+++ b/src/service-discovery-applet.in
@@ -60,16 +60,17 @@ except ImportError, e:
# SERVICES THAT WILL BE ADDED TO GCONF ON THE FIRST RUN
#
# default browsing value
-first_run_services = {
- "_http._tcp" : True,
- "_https._tcp" : False,
- "_ssh._tcp" : True,
- "_sftp-ssh._tcp" : False,
- "_ftp._tcp" : True,
- "_webdav._tcp" : False,
- "_webdavs._tcp": False
- }
-
+first_run_services = {}
+for (stype, description) in avahi.ServiceTypeDatabase.ServiceTypeDatabase().items():
+ first_run_services[stype] = False
+
+first_run_services["_http._tcp"] = True
+first_run_services["_https._tcp"] = True
+first_run_services["_ssh._tcp"] = True
+first_run_services["_sftp-ssh._tcp"] = True
+first_run_services["_ftp._tcp"] = True
+first_run_services["_webdav._tcp"] = True
+first_run_services["_webdavs._tcp"] = True
###############################################################################