Skip to content

Panel launchers: add option to hide running apps - #14139

Closed
TheKodeToad wants to merge 1 commit into
linuxmint:masterfrom
TheKodeToad:auto-hide-launcher
Closed

TheKodeToad wants to merge 1 commit into
linuxmint:masterfrom
TheKodeToad:auto-hide-launcher

Conversation

@TheKodeToad

@TheKodeToad TheKodeToad commented Nov 16, 2026 •

Copy link
Copy Markdown

Similar to what is available in KDE Plasma. To preserve the classic windows behaviour by default, it starts off disabled.

I'm not experienced with GJS, Clutter or GNOME/cinnamon extensions, but I really needed this and did manage to implement it with a few hours of tinkering. I thought submitting this modification upstream was worth a try.

If it helps justify this feature, as somebody used to Plasma I often end up accidentally launching multiple instances of an application without this (apologies if I was supposed to first open a feature request instead of just opening a PR).

Possible UX issues:

  • Adding an icon for an application which is already open may make it seem like it wasn't added properly (not sure how to tackle this)
  • There isn't a context menu item to launch a new instance on the window list applet

Not sure if these would be considered blockers.

@github-actions

Copy link
Copy Markdown

Best-practices scanner

This is a regex-based check for API usage that can pose security, performance or
maintainability issues, or that may already be provided by Cinnamon. Most findings
are advisory and do not automatically disqualify a pull request.

This check is not perfect and will not replace a normal review.


Found 3 potential issue(s):

⚠️ WARNING

⚠️ lang_bind

files/usr/share/cinnamon/applets/panel-launchers@cinnamon.org/applet.js:174

this._signals.connect(app, "notify::state", Lang.bind(this, this._updateVisibility));

Lang.bind() is deprecated. Use arrow functions (() => {}) or Function.prototype.bind() instead.

files/usr/share/cinnamon/applets/panel-launchers@cinnamon.org/applet.js:175

this._signals.connect(this.launchersBox, "launcher-hide-running-setting-changed", Lang.bind(this, this._updateVisibility));

Lang.bind() is deprecated. Use arrow functions (() => {}) or Function.prototype.bind() instead.

files/usr/share/cinnamon/applets/panel-launchers@cinnamon.org/applet.js:176

this._signals.connect(global.settings, 'changed::' + PANEL_EDIT_MODE_KEY, Lang.bind(this, this._updateVisibility));

Lang.bind() is deprecated. Use arrow functions (() => {}) or Function.prototype.bind() instead.


Automated pattern check.

@TheKodeToad
TheKodeToad marked this pull request as draft November 16, 2026 16:04
@TheKodeToad

TheKodeToad commented Nov 16, 2026 •

Copy link
Copy Markdown
Author

Drag and drop doesn't seem to work properly with this turned on (suggested solution welcome)

@TheKodeToad
TheKodeToad marked this pull request as ready for review November 16, 2026 17:18
@TheKodeToad

Copy link
Copy Markdown
Author

This seems to do the trick

dropIndex = -1;
else if (dropIndex < -1)
dropIndex = 0;
if (unmappedDropIndex >= visibleChildren.length)

@TheKodeToad TheKodeToad Nov 16, 2026 •

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed? I didn't manage to get unmappedDropIndex to go out of bounds.

I changed < -1 to < 0 anyway as it looked like an off-by-one to me.

@mtwebster

Copy link
Copy Markdown
Member

This defeats the purpose of the panel launcher. Many apps you might launch multiple windows of.

It sounds like the grouped window list applet would be better for you.

@mtwebster mtwebster closed this Nov 27, 2026
@TheKodeToad

Copy link
Copy Markdown
Author

It should be sufficient for me with #14103. I can use my own patched version anyway, and I can see why this is niche.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants