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:
parent
1c3603b75e
commit
8c593644bf
@ -1,7 +1,7 @@
|
|||||||
Index: 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
|
||||||
--- gnome-shell-extensions-3.24.2.orig/extensions/apps-menu/extension.js
|
--- a/extensions/apps-menu/extension.js
|
||||||
+++ gnome-shell-extensions-3.24.2/extensions/apps-menu/extension.js
|
+++ b/extensions/apps-menu/extension.js
|
||||||
@@ -7,6 +7,8 @@ const Lang = imports.lang;
|
@@ -7,6 +7,8 @@ const Lang = imports.lang;
|
||||||
const Shell = imports.gi.Shell;
|
const Shell = imports.gi.Shell;
|
||||||
const St = imports.gi.St;
|
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 Main = imports.ui.main;
|
||||||
const Meta = imports.gi.Meta;
|
const Meta = imports.gi.Meta;
|
||||||
const PanelMenu = imports.ui.panelMenu;
|
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 textureCache = St.TextureCache.get_default();
|
||||||
let iconThemeChangedId = textureCache.connect('icon-theme-changed',
|
let iconThemeChangedId = textureCache.connect('icon-theme-changed',
|
||||||
Lang.bind(this, this._updateIcon));
|
Lang.bind(this, this._updateIcon));
|
||||||
@ -32,7 +32,7 @@ Index: gnome-shell-extensions-3.24.2/extensions/apps-menu/extension.js
|
|||||||
}));
|
}));
|
||||||
this._updateIcon();
|
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());
|
+ let destFile = Gio.File.new_for_path(destDirPath + '/' + sourceFile.get_basename());
|
||||||
+ if (sourceFile.copy(destFile, Gio.FileCopyFlags.OVERWRITE,
|
+ if (sourceFile.copy(destFile, Gio.FileCopyFlags.OVERWRITE,
|
||||||
+ null, null, null)) {
|
+ 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(
|
+ destFile.set_attribute_uint32(
|
||||||
+ Gio.FILE_ATTRIBUTE_UNIX_MODE, parseInt("0755", 8),
|
+ Gio.FILE_ATTRIBUTE_UNIX_MODE, parseInt("0755", 8),
|
||||||
+ Gio.FileQueryInfoFlags.NOFOLLOW_SYMLINKS,
|
+ Gio.FileQueryInfoFlags.NOFOLLOW_SYMLINKS,
|
||||||
|
@ -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
|
Mon Oct 9 06:30:17 UTC 2017 - xwang@suse.com
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user