-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hamster shell extension doesn't work with hamster snap package #328
Comments
This sounds like it will be fixed in snap at some point, which also seems the right place to fix this. However, what might make sense is to let the extension monitor dbus to see if the hamster endpoint (or whatever the terminology is) becomes available later. I suspect that dbus has some kind of "Send me an event when this name becomes available later" interface that we could use for this? This might also be useful in cases where hamster quits and gets restarted (not sure how that is currently handled, though). |
Thanks for the outline, the current situation is indeed not ideal for snap, I'll continue looking for improvements if that's possible without changing how hamster works typically. |
Well, I guess we need to avoid the initial extension enablement to fail, and find some way to place the extension on the GNOME panel at a later time when the the DBus service is found and the extension has the chance to become functional. But I lack the knowledge of GNOME shell internals to fix that on a reasonable time scale. Perhaps someone else? |
I'm on Ubuntu 20.04. I've installed the Hamster Snap package, ran the necessary
Can I start the DBus service manually somehow? |
Perhaps it might have worked better with hamster 2.2.2. In hamster 3.0.x, the code behind the With a regular installation, that's only a minor issue (just the delay between clicking "edit activity" and the hamster window popping up is noticeably longer). But with snap, as DBus activation doesn't work cleanly, I guess its a cause of major headache. |
Thanks for your response! I briefly skimmed projecthamster/hamster#574 and gained an idea of how the current situation of incompatibility between hamster core and GNOME Shell extension could arise... 🙈 Anyway, to get to the point:
Even if I keep the Hamster GUI open all the time, i.e. incl. restart of the GNOME Shell (what I already did the last time IIRC, but to be sure I've checked again now),
Addendum: Just to be clear, I've installed the 3.36 release of the Shell extension. |
I don't think it that this is related to the version of the shell extension. It's most probably rather a limitation of snap, as explained in the initial comment of this issue. |
Perhaps someone should try to create a native Debian/Ubuntu package. It can't be that difficult. But I'm not into Debian packaging, so I can't really judge it. |
Too "briefly skimmed"... So I do agree with @elbenfreund that part of this sad story was due to FUD. (Had to look for the definition) 🙂 Shallow understanding is unfortunately widespread. Please be nice to the new maintainers; I'm out. Bottom line: Criticizing v3 was a red herring here. |
Yeah, I meanwhile realized that v3 and all the development-internal conflicts around it weren't the cause of the incompatibility per se but rather some shortcomings specific to the Snap version of Hamster v3 as @mwilck indicated in the initial post of this thread. Anyway, the recently added Flatpak version of Hamster v3 works fine in combo with GNOME Shell extension. But what still remains a major deal breaker IMHO is the removal of the idle detection which hasn't been brought back in any other form yet. Due to this, the GNOME Shell extension is currently way less useful. I understand that from an organizational / software architectural point of view this removal might be beneficial – but I guess it was effectuated overhasty (i.e. without waiting for a proper alternative/succesor for the same functionality). |
@salim-b
Responsibility is on a bunch of people who were not thorough enough,
And I precisely disagreed: |
Forked off the discussion between @extraymond and myself on #326. See this comment and below.
Snap-packaged software doesn't support DBus activation for security reasons (discussion on snapcraft forum).
That's a problem for the extension, because the extension is started right after login, and by that time, the hamster-windows-service may not be started yet. The extension gives up after failing to start the DBus service. Even if the service becomes available later, the extension won't be activated again, at least not in the GNOME panel (perhaps that's a bug, but I have no idea how to fix it).
So, basically, users of the snap package and the GNOME extension will need to launch hamster manually after logging in, and then type Alt-F2 -> r to restart GNOME shell, which is not exactly user-friendly, and doesn't work at all for Wayland.
Creating an autostart file for hamster may be a workaround, but it's currently unclear if it works at all, and if it will work reliably.
The text was updated successfully, but these errors were encountered: