1
0

Accepting request 534337 from home:zhengqiang:branches:GNOME:Factory

- Update gnome-shell-add-app-to-desktop.patch, allow app 
  shortcut added to desktop could be executed with default 
  attribute "trusted" (bsc#1055240).

OBS-URL: https://build.opensuse.org/request/show/534337
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-shell-extensions?expand=0&rev=144
This commit is contained in:
Dominique Leuenberger 2017-10-17 21:26:55 +00:00 committed by Git OBS Bridge
parent 1c3603b75e
commit 8c593644bf
2 changed files with 19 additions and 6 deletions

View File

@ -1,7 +1,7 @@
Index: gnome-shell-extensions-3.24.2/extensions/apps-menu/extension.js
===================================================================
--- gnome-shell-extensions-3.24.2.orig/extensions/apps-menu/extension.js
+++ gnome-shell-extensions-3.24.2/extensions/apps-menu/extension.js
diff --git a/extensions/apps-menu/extension.js b/extensions/apps-menu/extension.js
index 2f4002a..ed51e0c 100644
--- a/extensions/apps-menu/extension.js
+++ b/extensions/apps-menu/extension.js
@@ -7,6 +7,8 @@ const Lang = imports.lang;
const Shell = imports.gi.Shell;
const St = imports.gi.St;
@ -11,7 +11,7 @@ Index: gnome-shell-extensions-3.24.2/extensions/apps-menu/extension.js
const Main = imports.ui.main;
const Meta = imports.gi.Meta;
const PanelMenu = imports.ui.panelMenu;
@@ -68,9 +70,20 @@ const ApplicationMenuItem = new Lang.Cla
@@ -68,9 +70,20 @@ const ApplicationMenuItem = new Lang.Class({
let textureCache = St.TextureCache.get_default();
let iconThemeChangedId = textureCache.connect('icon-theme-changed',
Lang.bind(this, this._updateIcon));
@ -32,7 +32,7 @@ Index: gnome-shell-extensions-3.24.2/extensions/apps-menu/extension.js
}));
this._updateIcon();
@@ -92,6 +105,100 @@ const ApplicationMenuItem = new Lang.Cla
@@ -92,6 +105,106 @@ const ApplicationMenuItem = new Lang.Class({
});
},
@ -110,6 +110,12 @@ Index: gnome-shell-extensions-3.24.2/extensions/apps-menu/extension.js
+ let destFile = Gio.File.new_for_path(destDirPath + '/' + sourceFile.get_basename());
+ if (sourceFile.copy(destFile, Gio.FileCopyFlags.OVERWRITE,
+ null, null, null)) {
+ // In order to make the general monitor recognize the setting of metadata,
+ // this function call should before the setting of unix mode.
+ destFile.set_attribute_string("metadata::trusted",
+ "yes",
+ Gio.FileQueryInfoFlags.NOFOLLOW_SYMLINKS,
+ null);
+ destFile.set_attribute_uint32(
+ Gio.FILE_ATTRIBUTE_UNIX_MODE, parseInt("0755", 8),
+ Gio.FileQueryInfoFlags.NOFOLLOW_SYMLINKS,

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Oct 17 06:38:09 UTC 2017 - qzheng@suse.com
- Update gnome-shell-add-app-to-desktop.patch, allow app
shortcut added to desktop could be executed with default
attribute "trusted" (bsc#1055240).
-------------------------------------------------------------------
Mon Oct 9 06:30:17 UTC 2017 - xwang@suse.com