jqno / gnome-happy-appy-hotkey

GNOME Shell extension to assign hotkeys to applications to give them focus or launch them
GNU General Public License v3.0
7 stars 1 forks source link

Apps installed using podman, and exported so that the base os sees them, don't work well with Happy Appy #5

Open quesada opened 6 months ago

quesada commented 6 months ago

I think I figured out why Foot terminal didn't work. I installed it on a TW podman. There's no flatpak for that.

I now noticed the same problem with vscode (also installed on that TW podman: pressing the key when one window exist doesn't get focus to that window, it launches a new one.

This might be a niche use case. When I install vscode as flatpak, it works as intended. But editors that need to reach SDKs and other system libs are a terrible match for flatpak, so I prefer to install them on the container os. I'm sure the majority of devs want that.

jqno commented 6 months ago

Ahh yes, that might be it indeed. I have an app that I run through Bottles/Wine, which also doesn't work with this extension. When I tested with Foot, I'd just installed it as an rpm.

I'm familiar with Podman, but not TW Podman, is that some kind of wrapper?

quesada commented 6 months ago

Tumbleweed installed as a pod in podman (or docker)

jqno commented 6 months ago

I'm not familiar with that workflow. Can you send me a link that describes how to set that up?

I have the same issue with an app I run through Bottles/Wine. Maybe if I fix one, it will fix both...

jqno commented 6 months ago

I've experimented with this using Bottles, and I'm running into two issues, neither of which I know how to solve. I strongly suspect that one, or both, of these issues are also affecting TW Podman, although I can't confirm because I still don't know how to set that up.

  1. Apps created though Bottles still register as Bottles instead of as their own app. For instance, I've installed Bricklink Studio via Bottles, and created a shortcut for it. When I log all the open windows, it logs "Bottles", not "Bricklink Studio". So in your case, you could try setting up the hotkey for TW Podman. If that brings up your app, it could act as a workaround. Perhaps you could create two shortcuts, one to Foot (to start it), one to TW Podman (to focus it). It's not ideal, but maybe it can help you out (unless the next problem also affects TW Podman).
  2. Apps create through Bottles refuse to be given focus. I've tried basically all the things the docs say about focusing a window, and I've tried a good number of approaches from other extensions, and while the 'unbound cycle' function correctly identifies the Bottles window (assuming I haven't made a shortcut for it), when I try to focus it, nothing happens.

If you know of any things I can try to solve either of these issues, I'm very much open to that!