[gnome-shell] Don't require applications to accept URIs for recent files
- From: Gustavo Noronha Silva <gns src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-shell] Don't require applications to accept URIs for recent files
- Date: Thu, 12 Nov 2009 16:26:38 +0000 (UTC)
commit ae744bf2065d8c49625c800ea8b67e75adbeba31
Author: Gustavo Noronha Silva <gustavo noronha collabora co uk>
Date: Mon Nov 9 15:54:44 2009 -0200
Don't require applications to accept URIs for recent files
This should not be required, since glib correctly deals with such
applications by giving them the local gvfs path, and those
applications which do support URIs keep being able to use the URIs in
GFiles.
Based on original work by Guido Günther <agx sigxcpu org>.
https://bugzilla.gnome.org/show_bug.cgi?id=601287
js/misc/docInfo.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/misc/docInfo.js b/js/misc/docInfo.js
index 021dce4..8123e28 100644
--- a/js/misc/docInfo.js
+++ b/js/misc/docInfo.js
@@ -36,8 +36,8 @@ DocInfo.prototype = {
// shorter in terms of lines of code, we are not doing so
// because that would duplicate the work of retrieving the
// mime type.
-
- let appInfo = Gio.app_info_get_default_for_type(this.mimeType, true);
+ let needsUri = Gio.file_new_for_uri(this.uri).get_path() == null;
+ let appInfo = Gio.app_info_get_default_for_type(this.mimeType, needsUri);
if (appInfo != null) {
appInfo.launch_uris([this.uri], Main.createAppLaunchContext());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]