diff options
author | Nick Schermer <nick@xfce.org> | 2010-11-13 20:04:57 +0100 |
---|---|---|
committer | Nick Schermer <nick@xfce.org> | 2010-11-13 20:04:57 +0100 |
commit | dbd731ff291c5128109546832d25f3b061f5afc0 (patch) | |
tree | 3d0cf77d1fe47bcc82cd86c8b4828958d429972a /exo-open | |
parent | a974e2d5feed0ff233d8a1406f0e4f07fc55b6c3 (diff) | |
download | exo-dbd731ff291c5128109546832d25f3b061f5afc0.tar.gz |
Trash uris might be files too.
GIO reports directories in a trash uri as G_FILE_TYPE_DIRECTORY
so we're cool here.
Diffstat (limited to 'exo-open')
-rw-r--r-- | exo-open/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/exo-open/main.c b/exo-open/main.c index 9fbfd4e..526a416 100644 --- a/exo-open/main.c +++ b/exo-open/main.c @@ -87,8 +87,6 @@ static KnownSchemes known_schemes[] = { { "^(https?|ftps?|gopher)$", "WebBrowser" }, { "^mailto$", "MailReader" }, - /* no file here, because we handle directories and files differently */ - { "^(trash)$", "FileManager" } }; @@ -325,6 +323,9 @@ exo_open_uri (const gchar *uri, file_type = g_file_info_get_file_type (file_info); if (file_type == G_FILE_TYPE_DIRECTORY) { +#ifndef NDEBUG + g_debug ("file is directory, use filemanager"); +#endif /* directories should go fine with a file manager */ retval = exo_open_launch_category ("FileManager", uri); succeed = TRUE; |