Comment 12 for bug 113092

Revision history for this message
WillerZ (willerz+launchpad) wrote :

Given that nautilus cannot open http or https URLs I have modified nautilus.py on my box to use firefox for these URLs. I have not modified the other types as I have no way to test them in my network (other than _sftp-ssh._tcp which I can verify DOES work as-is). Patch:

--- nautilus.py 2008-03-12 14:56:20.000000000 +0000
+++ nautilus.py 2008-09-30 20:34:57.000000000 +0100
@@ -28,10 +28,13 @@
         path = get_txt_value(txts,"path")
         username = get_txt_value(txts,"u")
         password = get_txt_value(txts,"p")
+ app = "nautilus"
         if stype == "_http._tcp":
             url = build_url("http",address,port, path, username,password)
+ app = "firefox"
         if stype == "_https._tcp":
             url = build_url("https",address,port, path, username,password)
+ app = "firefox"
         if stype == "_ftp._tcp":
             url = build_url("ftp",address,port, path, username,password)
         if stype == "_ftps._tcp":
@@ -43,7 +46,7 @@
         if stype == "_webdavs._tcp":
             url = build_url("davs",address,port, path, username,password)

- cmdline = ["nautilus", url ]
+ cmdline = [app, url ]
  subprocess.Popen(cmdline).wait()

 def load():