In Unity, the Update Manager was included in the power cog menu along with log out, suspend, shut down etc. But in GNOME Shell, I do not find such an option. Is there any extension or tweak to make Update Manager
appear in that menu?
In Unity, the Update Manager was included in the power cog menu along with log out, suspend, shut down etc. But in GNOME Shell, I do not find such an option. Is there any extension or tweak to make Update Manager
appear in that menu?
This way to solve the problem is achieved by using the alternative-status-menu
extension.
If you have not installed the alternative-status-menu
extension, type the following commands in the terminal.
sudo add-apt-repository ppa:webupd8team/gnome3
sudo apt-get update
sudo apt-get install gnome-shell-extensions-alternative-status-menu
gedit update-menu-extension.patch
Cut the following, and paste in the editor.
diff -urNP org/extension.js new/extension.js
--- org/extension.js 2011-11-10 00:12:19.912240830 +0900
+++ new/extension.js 2011-11-10 00:10:14.779233789 +0900
@@ -2,6 +2,7 @@
const Lang = imports.lang;
const St = imports.gi.St;
+const Shell = imports.gi.Shell;
const Main = imports.ui.main;
const PopupMenu = imports.ui.popupMenu;
const GnomeSession = imports.misc.gnomeSession;
@@ -10,6 +11,13 @@
const Gettext = imports.gettext.domain('gnome-shell-extensions');
const _ = Gettext.gettext;
+function updateManager(item) {
+ Main.overview.hide();
+ let app = Shell.AppSystem.get_default().lookup_setting('update-manager.desktop');
+ app.activate();
+}
+
+
function updateSuspend(object, pspec, item) {
item.actor.visible = object.get_can_suspend();
}
@@ -57,6 +65,10 @@
item.connect('activate', Lang.bind(this, this._onPreferencesActivate));
this.menu.addMenuItem(item);
+ item = new PopupMenu.PopupMenuItem(_("Update Manager"));
+ item.connect('activate', Lang.bind(this, updateManager));
+ this.menu.addMenuItem(item);
+
item = new PopupMenu.PopupSeparatorMenuItem();
this.menu.addMenuItem(item);
Add a blank line at the last line, and save.
cp /usr/share/gnome-shell/extensions/alter[email protected]/extension.js
patch -p1 < update-menu-extension.patch
sudo cp extension.js /usr/share/gnome-shell/extensions/[email protected]/.
Restart gnome-shell and turn on the alternative-status-menu
extension by gnome-tweak-tool
.
The above screenshot is from the Japanese version. "アップデートマネージャー" = "Update Manager".
Don't worry, the menu item ("Update Manager") will be displayed in English.
Note: If you will upgrade alternative-status-menu
, you can not use "Update Manager" menu in session menus because alternative-status-menu
extension will be overwritten.
sudo apt-get purge gnome-shell-extensions-alternative-status-menu
or
sudo apt-get install --reinstall gnome-shell-extensions-alternative-status-menu