Skip to content

Commit

Permalink
Added menu details option (#11916)
Browse files Browse the repository at this point in the history
* Added option in context menu to show details of app
  • Loading branch information
kacperpaczos authored Nov 28, 2023
1 parent 2cfd58f commit 3c7a57f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions files/usr/share/cinnamon/applets/[email protected]/applet.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,9 @@ class ApplicationContextMenuItem extends PopupMenu.PopupBaseMenuItem {
case "remove_from_favorites":
AppFavorites.getAppFavorites().removeFavorite(this._appButton.app.get_id());
break;
case "app_properties":
Util.spawnCommandLine("cinnamon-desktop-editor -mlauncher -o" + this._appButton.app.get_app_info().get_filename());
break;
case "uninstall":
Util.spawnCommandLine("/usr/bin/cinnamon-remove-application '" + this._appButton.app.get_app_info().get_filename() + "'");
break;
Expand Down Expand Up @@ -468,6 +471,9 @@ class GenericApplicationButton extends SimpleMenuItem {
menu.addMenuItem(menuItem);
}

menuItem = new ApplicationContextMenuItem(this, _("Properties"), "app_properties", "document-properties-symbolic");
menu.addMenuItem(menuItem);

if (this.applet._canUninstallApps) {
menuItem = new ApplicationContextMenuItem(this, _("Uninstall"), "uninstall", "edit-delete");
menu.addMenuItem(menuItem);
Expand Down

0 comments on commit 3c7a57f

Please sign in to comment.