forked from srbala/fedora-kickstarts
Desktop: Don't use spawnDesktop in the shell extension
Its future is mirky
This commit is contained in:
parent
abe9a5fcb2
commit
750658b18a
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user