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;
function main() {
let item = new PopupMenu.PopupMenuItem(Shell.AppSystem.get_default().get_app('anaconda.desktop').get_name());
item.connect('activate', function() { Util.spawnDesktop('anaconda'); });
let app = Shell.AppSystem.get_default().get_app('anaconda.desktop');
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);
}