rafaelmardojai / blanket

Listen to different sounds
GNU General Public License v3.0
1.36k stars 103 forks source link

Snap package ready #311

Open soumyaDghosh opened 1 year ago

soumyaDghosh commented 1 year ago

Hii, I have snapped your app, but the problem is it's trying to access /dev/shm/jack-db.. I tried jack1 and shared-memory plug but got no help. Can you kindly help me to fix this.

The manifest link: https://code.launchpad.net/~soumyadghosh/+git/blanket-snap

soumyaDghosh commented 1 year ago

Hi, it has been fixed. Would you like to have it under your account?

rafaelmardojai commented 1 year ago

Hi, it has been fixed. Would you like to have it under your account?

Thanks for taking the time!

I really don't have timer nor experience with Snap to take responsibility. But feel free to sent a PR adding the Snapcraft button to the Third Party Packages section of the README if you publish it.

vinberg88 commented 1 year ago

Nice Work!

I can't get the sound to work like flatpak. Otherwise it's good =)

https://snapcraft.io/blanket

sudo snap install blanket --edge

or

sudo snap install blanket --beta

Regards, Vinberg

soumyaDghosh commented 1 year ago

Hii, the problem with the beta channel was, it needed some manual slot connections(not allowed automatically due to security reasons), but later I fixed it. https://forum.snapcraft.io/t/request-to-autoconnect-to-the-pulseaudio-plug-for-the-snap-blanket/35603

Just now, I pushed it to stable channel. Try it, works just like flatpak.

vinberg88 commented 1 year ago

No sound - ParrotsSecurityOS - Wslg - Windows.

Is there a package i have to install on debian? All debian works on ParrotSec.

https://i.imgur.com/Fb5dUN2.png

Thanks - sudo snap install blanket

soumyaDghosh commented 1 year ago

Can you give me the output of snap connections blanket

vinberg88 commented 1 year ago

Ok give me a minute =)

https://i.imgur.com/EPFsxzA.png

soumyaDghosh commented 1 year ago

Try with removing the old config folder, i.e $HOME/snap/blanket folder, then, open the app. Try with changing some sliders also once.

If the issue persists. Kindly try with checking some other audio based snaps, if they are able to provide you the audio, i.e g4music, resonance, amberol.

If they do provide audio and blanket doesn't, then kindly inform me about that. If the scenario is same with them, then some issue with the audio-playback by the snaps.

vinberg88 commented 1 year ago

OK it works on ChromeOS version 115 - So there's always something!

The problem will probably be solved soon.....

soumyaDghosh commented 1 year ago

May be it's an issue with the OS and the Snapd in the OS?

vinberg88 commented 1 year ago

Now it works =) reboot..

Have a god day!

soumyaDghosh commented 1 year ago

I am having it, Gods are on me.

vinberg88 commented 1 year ago

https://www.youtube.com/watch?v=QaSVOnTjCck - Final solution.... 2023

Never got it to work via snap, no sound. I read somewhere that they consider it a hack to use Windows 11 and Wsl. Flatpak install alot of other shi... stuff. Rebuild kernel is not my taste.. lots of work.

soumyaDghosh commented 1 year ago

So, snap didn't work with WSL?

vinberg88 commented 1 year ago

Now its works =) Fedora 38 and WSL - Hade to paste this to Fedora.

sudo nano /etc/selinux/config

SELINUX=permissive

and

sudo nano /etc/wsl.conf

[boot] systemd=true

vinberg88 commented 1 year ago

Centos 9 works to on Windows 11 =) WsL

vinberg88 commented 1 year ago

Opensuse Works =) only deb left to fix =)

soumyaDghosh commented 1 year ago

Thanks for the feedback. BTW, systemd is one of the core dependencies of snapd.

vinberg88 commented 1 year ago

i find that yesterday... SELINUX=permissive and all starts to work!

vinberg88 commented 1 year ago

Took me a few days and nights =)

Latest Ubuntu 23.10 and WSLg from Windows 11. Blanket is installd via Snapd and is working =)

Dont install pulseaudio that will break Snapd sound.

https://i.imgur.com/g5cBGJo.png

I love Blanket, Mattias Vinberg - Sweden

soumyaDghosh commented 1 year ago

Hii @rafaelmardojai can you help me to fix the autostart. it's actually not working in the snap. Does your app looks for a desktop file to autostart? If it's the app_id, then it needs to be patched.

rafaelmardojai commented 1 year ago

@soumyaDghosh Blanket uses org.freedesktop.portal.Background from xdg-desktop-portal. From what I know it should be supported on snap.

Found this docs https://snapcraft.io/docs/xdg-desktop-portals, but I know nothing about snapcraft.

soumyaDghosh commented 1 year ago

Can you do something to show some error logs when the autostart button doesn't work?

rafaelmardojai commented 1 year ago

Do you get some error dialog?

soumyaDghosh commented 1 year ago

No I don't get any!

rafaelmardojai commented 1 year ago

So you can turn it on, but it never gets autostarted?

soumyaDghosh commented 1 year ago

No I can't even turn it on. The keep it running in background works though.

vinberg88 commented 1 year ago

Have same problem.

https://i.imgur.com/4aSUStA.png

Arch on WSLg Windows 11.

rafaelmardojai commented 1 year ago

@Lurixswe, at least you're getting an error dialog. It can mean two things, the request to the portal couldn't be made (probably xdp-desktop-portal isn't installed) or the request ended in an unexpected way (I probably should separate both errors).

vinberg88 commented 1 year ago

Fixed =) toked me 2 days hehe.

https://i.imgur.com/RGSKGEF.png

soumyaDghosh commented 1 year ago

How? Can you give me some insight?

vinberg88 commented 1 year ago

Fast load =) Fedora 38 and windows 11 Pro - Wslg

https://www.youtube.com/watch?v=M6JhiZBPvJc

soumyaDghosh commented 1 year ago

Fixed =) toked me 2 days hehe.

https://i.imgur.com/RGSKGEF.png

Can you explain me how did you fix it?