[Xfce4-commits] <tumbler:master> Disable http and cdda schemes as well.

Nick Schermer noreply at xfce.org
Sat Dec 8 18:48:02 CET 2012


Updating branch refs/heads/master
         to df93ffb651100b18ec2896ae2f7d995ddcf155f6 (commit)
       from 237528f3831ddcf168da959bb5df3b00f3121287 (commit)

commit df93ffb651100b18ec2896ae2f7d995ddcf155f6
Author: Nick Schermer <nick at xfce.org>
Date:   Sat Dec 8 18:46:41 2012 +0100

    Disable http and cdda schemes as well.

 tumbler/tumbler-util.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/tumbler/tumbler-util.c b/tumbler/tumbler-util.c
index b601364..bb36be4 100644
--- a/tumbler/tumbler-util.c
+++ b/tumbler/tumbler-util.c
@@ -61,10 +61,12 @@ tumbler_util_get_supported_uri_schemes (void)
       for (i = 0; vfs_schemes[i] != NULL; ++i)
         {
           /* skip unneeded schemes */
-          if (strcmp ("file", vfs_schemes[i]) != 0
-              && strcmp ("computer", vfs_schemes[i]) != 0
-              && strcmp ("localtest", vfs_schemes[i]) != 0
-              && strcmp ("network", vfs_schemes[i]) != 0)
+          if (strcmp ("file", vfs_schemes[i]) != 0         /* always first scheme */
+              && strcmp ("computer", vfs_schemes[i]) != 0  /* only devices here */
+              && strcmp ("localtest", vfs_schemes[i]) != 0 /* test fs */
+              && strcmp ("http", vfs_schemes[i]) != 0      /* not a fs you can browse */
+              && strcmp ("cdda", vfs_schemes[i]) != 0      /* audio cds */
+              && strcmp ("network", vfs_schemes[i]) != 0)  /* only to list remotes, not files */
             uri_schemes[n++] = g_strdup (vfs_schemes[i]);
         }
     }


More information about the Xfce4-commits mailing list