1
1
mirror of https://pagure.io/fedora-kickstarts.git synced 2024-11-16 13:43:09 +00:00

Desktop: Don't use spawnDesktop in the shell extension

Its future is mirky
This commit is contained in:
Matthias Clasen 2011-03-16 23:59:54 -04:00
parent abe9a5fcb2
commit 750658b18a

View File

@ -51,8 +51,9 @@ const Main = imports.ui.main;
const Util = imports.misc.util; const Util = imports.misc.util;
function main() { function main() {
let item = new PopupMenu.PopupMenuItem(Shell.AppSystem.get_default().get_app('anaconda.desktop').get_name()); let app = Shell.AppSystem.get_default().get_app('anaconda.desktop');
item.connect('activate', function() { Util.spawnDesktop('anaconda'); }); let item = new PopupMenu.PopupMenuItem(app.get_name());
item.connect('activate', function() { app.launch(); });
Main.panel._statusmenu.menu.addMenuItem(item, Main.panel._statusmenu.menu._getMenuItems().length - 1); Main.panel._statusmenu.menu.addMenuItem(item, Main.panel._statusmenu.menu._getMenuItems().length - 1);
} }