-
Notifications
You must be signed in to change notification settings - Fork 250
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
Snap package for hamster #418
Comments
Thanks for your interest in hamster ! Sorry my knowledge about dbus is still very limited, Here is the relevant part of the waf script: Lines 71 to 82 in d864d0a
With hamster/org.gnome.hamster.service.in Line 3 in d864d0a
The snap people might be of better help. |
Thx for the reply! I've tried contacting the snap team via snap forum. After digging into the hamster code base, it seems that the hamster app is separated into hamster-service and hamster-windows-service and the CLI client. The launch script that was managed by the CLI client will check whether the two other dependent service is started via dbus, and activate it if it's not found. I think I can bypass this by creating an alternative launch script that will always start the two depending service before the main CLI is ever invoked. |
Sound good ! |
Have you managed to build a hamster snap package ? I've been using hamster for years, recently I installed ubuntu 19.10, but in this version there are no more hamster packages. Not knowing python, and not finding clear instructions, I can't install it. |
I would say partially. I get it working if I manually start the services before the client. The hamster client requires three(or two) dbus services to be launch before the app instance. But since snap confined the app more strictly, it's not possible to use dbus-activation for user services. If we were to make it work today, we can simply add a custom launch script to call the app. I know it's possible. The reason I didn't work on it afterwards is that I believe the maintainers has some plan to update the build and launch script. #421. And lots of stuff are improving as well. So I might work on it in the next release. If you are interested you can copy my snapcraft.yaml above and play with it. Would love to see if someone can solve that issue with a better method. |
#496 An naive attempt to start snap packaging. Would love to hear how it can be improved. Proof that this works. |
Updated: It's now in a dedicated repo, and fully confined. To be able to confine this, I have to use the unmerged gsettings branch, due to Gconf not being provided by snap interfaces. Would be able to tracker master after #470 |
Good, please tell here when hamster appears on https://snapcraft.io/store, to advertise it in the README. |
Thanks a lot @extraymond Snap packing is a really interesting step forward because I wish to create a snap package for |
The installation process has been improved a lot lately, Admittedly, in the future, |
Hi! The snapcraft team has approved the usage of hamster-service and hamster-window-service plug so it's now able to publish to all channels. I've taken the suggestion and registered the name hamster instead of hamster-snap. However it's still under review so I'll update the page if anything happens. Right now it's possible to install the snap via "snap install hamster-snap" or via software stores with snap plugin enabled. The caveat of this snap that when upgrading versions. The services launched with the older version has to be manually killed, so that the gui process has the correct service it can access to. Otherwise it apparmor is gonna blame us for being naughty. |
Good, thanks ! |
Thx!! Should I close this? |
Yes, thanks ! |
Will do when I get approved with the new name. |
Hi! Guys, I'm trying to build hamster in snap right now, I believe I'm half way there.
Motivation
My motivation for doing so is as follows:
So here I am trying to reach out and see if anything clicks.
Problems
However there are some problems regarding invoking services with dbus.
For the manual build version, the hamster launch file with automatically invoke the hamster-service and hamster-windows-service if it's not started, but on the snap service I can't find a way to do so. So currently I have to manually start the two service before launching the GUI. Which works!
I would really appreciate any help regarding to setup dbus service so that it can be invoked by dbus name.
Here's the snapcraft.yaml if anyone is interested:
The text was updated successfully, but these errors were encountered: