[Xfce-bugs] [Bug 5710] Global function to check if a string looks like an uri

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Sat Aug 29 23:20:26 CEST 2009


http://bugzilla.xfce.org/show_bug.cgi?id=5710



--- Comment #2 from Nick Schermer <nick at xfce.org> 2009-08-29 23:20:26 CEST ---
Right now it is used in exo, thunar, garcon (but that is not using xfce
libraries) and panel. So technically exo could be used too.

Duno about _is_uri, I guess it's fine, but the string "look: I'm online" will
return true too.

The function is handy then you work with gio, if you have a string (from a
config file or dnd for example) you can use this function to pick between
g_file_new_for_{uri,path}, in exo-open it is used to decide if we can use
gtk_show_uri directly or perform some additional check if it's a file, email
address, website etc.

-- 
Configure bugmail: http://bugzilla.xfce.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Xfce-bugs mailing list