elementary / dock

A quick app launcher and window switcher for Pantheon and elementary OS
https://elementary.io
GNU General Public License v3.0
89 stars 24 forks source link

Launch new instance on middle click #227

Closed danirabbit closed 6 months ago

danirabbit commented 6 months ago

Fixes #77

Check if appinfo contains a single window hint or a new window action and try to launch a new instance if so. Otherwise, beep

danirabbit commented 6 months ago

@Marukesu thanks for the tips! I'm not sure why I thought the key would have to be a string :sweat_smile:

danirabbit commented 6 months ago

@Marukesu actually, testing it again I'm not getting the right behavior with treating SingleMainWindow as a boolean. It returns false even when it's null. So I could check has_key but then that's two calls where this is one call. Thoughts?

Marukesu commented 6 months ago

I think using string here is fine as only "true" and "false" are supported as boolean values in the desktop spec.