Snap package discussion #57
Replies: 23 comments 8 replies
-
BTW, just noticed, so, letting you know, plug |
Beta Was this translation helpful? Give feedback.
-
Thank you for the snapcraft.yaml :) So is Another thing I noticed is that the notification icons are not showing properly, do I need something extra to show symbolic icons? They're not showing on the top bar (app menu) either. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/diegopvlk/Dosage/blob/main/io.github.diegopvlk.Dosage.json#L12 As much I know from the docs, it's the snap equivalent to this of flatpak. So, you need to go and make a request in the forum for making this plug auto connect, else, this plug needs to be manually connected. It's the like the process of security checking, simply because this is a sensitive plug.
Can you show me the actual icons you want? I don't have a non ubuntu installation to test with. BTW, notification doesn't seem to be working. No idea why, in my tests it did. |
Beta Was this translation helpful? Give feedback.
-
I just need to check if the system is returned from suspension. From my tests it seems to be working, which I assume is because of the dbus in slots: Lines 36 to 39 in 41c2eff This is where it's used: Line 126 in 41c2eff Since it's working without
It's just the symbolic icon for the app, it shows on the app menu and notifications, I didn't need to do anything special in the flatpak, it just works normally. In the snap it shows like this:
For me it's working fine, tested on my machine with fedora and in a vm with ubuntu 22.04, so not sure what's wrong. |
Beta Was this translation helpful? Give feedback.
-
I think it's necessary. Though, I am not able to reproduce the user case. But, to talk with
Got it, snaps hardcode the desktop icon path, simply because Unity often faces issues with themed desktop icon. And as gnome has also ditched it with gnome 45, I think you should not think too much about it.
Well, it was my fault. I set the timings wrong to test with. |
Beta Was this translation helpful? Give feedback.
-
Ok then
Set a treatment for today and a time less than now.
I don't care about the app menu icon. But eventually I want to show the custom icon in the notification (haven't figure it out how yet). So I would prefer that at least this one works. |
Beta Was this translation helpful? Give feedback.
-
Yeah obviously they will. This is done in the desktop file and nothing related to your app. Check in EDIT: Confirmed, |
Beta Was this translation helpful? Give feedback.
-
Then it's a mystery on how it's working for me But I'll make the request anyway |
Beta Was this translation helpful? Give feedback.
-
Is this the vm of ubuntu or any other distro? |
Beta Was this translation helpful? Give feedback.
-
This is a pc with fedora 39. I can't test in a vm, suspension doesn't work. |
Beta Was this translation helpful? Give feedback.
-
Probably you haven't setup the confinement properly in fedora. Replacing the SeLinux, is tough in fedora. So, the confinement didn't work properly. |
Beta Was this translation helpful? Give feedback.
-
@soumyaDghosh Hey, do you know what are the necessary changes to make for Libadwaita 1.6/GNOME 46? |
Beta Was this translation helpful? Give feedback.
-
Until libadwaita 1.6 is officially released it'll not be added into the gnome-sdk. When it's official, it'll added, if you want to use prerelease, you can build it from the source. Also, |
Beta Was this translation helpful? Give feedback.
-
Got it
It was released today. So I don't have to do anything, just wait for |
Beta Was this translation helpful? Give feedback.
-
Exactly. It'll be updated and pushed to the users soon. |
Beta Was this translation helpful? Give feedback.
-
@soumyaDghosh Thanks! |
Beta Was this translation helpful? Give feedback.
-
BTW, I guess you mean libadwaita 1.5? |
Beta Was this translation helpful? Give feedback.
-
Ops, yes 1.5 |
Beta Was this translation helpful? Give feedback.
-
Also I think better to move this issue to a discussion |
Beta Was this translation helpful? Give feedback.
-
@soumyaDghosh Appreciate it! |
Beta Was this translation helpful? Give feedback.
-
Hey @soumyaDghosh, I'm trying to build the snap with core24 and the new sdk. This is the new snapcraft.yaml: name: dosage-tracker
base: core24
adopt-info: dosage-tracker
grade: stable
confinement: strict
parts:
blueprint-compiler:
source: https://gitlab.gnome.org/jwestman/blueprint-compiler.git
source-tag: "v0.12.0"
plugin: meson
meson-parameters:
- --prefix=/usr
override-prime: ""
dosage-tracker:
after: [blueprint-compiler]
plugin: meson
source: https://github.com/diegopvlk/Dosage.git
source-tag: "v1.6.1"
build-environment:
- PYTHONPATH: $CRAFT_STAGE/usr/lib/python3/dist-packages:$PYTHONPATH
- GI_TYPELIB_PATH: /snap/gnome-46-2404-sdk/current/usr/lib/girepository-1.0:/snap/gnome-46-2404-sdk/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/girepository-1.0${GI_TYPELIB_PATH:+:$GI_TYPELIB_PATH}
build-packages:
- libvulkan-dev
- libxkbcommon-dev
- libportal-gtk4-dev
meson-parameters:
- --prefix=/snap/dosage-tracker/current/usr
override-pull: |
craftctl default
sed -i -e 's|@GJS@|/snap/dosage-tracker/current/gnome-platform/usr/bin/gjs|g' src/io.github.diegopvlk.Dosage.in
organize:
snap/dosage-tracker/current: .
parse-info: [usr/share/appdata/io.github.diegopvlk.Dosage.appdata.xml]
prime:
- -snap/dosage-tracker
slots:
dosage-tracker:
interface: dbus
bus: session
name: io.github.diegopvlk.Dosage
apps:
dosage-tracker:
command: usr/bin/io.github.diegopvlk.Dosage
desktop: usr/share/applications/io.github.diegopvlk.Dosage.desktop
autostart: dosage-tracker-startup.desktop
common-id: io.github.diegopvlk.Dosage
environment:
GI_TYPELIB_PATH: $SNAP/gnome-platform/usr/lib/${CRAFT_ARCH_TRIPLET_BUILD_FOR}/gjs/girepository-1.0:${GI_TYPELIB_PATH}
extensions:
- gnome
plugs:
- audio-playback
- login-session-observe It's building but I'm getting this after installing and running dosage-tracker:
I tried to install the libraries from the log but I get even more errors. Any idea on how to fix? |
Beta Was this translation helpful? Give feedback.
-
@soumyaDghosh Hey, so apparently it's possible now to push new snap versions to the store. Have you noticed any issues since core24? Just so I know before I push to stable. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to fix the snap but I'm failing to understand why during the building phase it uses the latest sdk (Adw 1.6.1 and GTK 4.16.3) and when running it uses an older one (Adw 1.5.2 and GTK 4.14.4). Shouldn't it use the newer one as well when installing and running? I'm confused 😅
|
Beta Was this translation helpful? Give feedback.
-
Thank you for the snap package. Feel free to mention me, with any issue with the snap. BTW, you can have workflows for the snap to test if it builds or not.
Beta Was this translation helpful? Give feedback.
All reactions