geoffreybennett / alsa-scarlett-gui

alsa-scarlett-gui is a Gtk4 GUI for the ALSA controls presented by the Linux kernel Focusrite Scarlett2 Mixer Driver
655 stars 38 forks source link

Provide Flatpak Application #32

Open naftulikay opened 2 years ago

naftulikay commented 2 years ago

I'm on Ubuntu 20.04 (elementary OS) and there isn't really a way for me to upgrade to 22.04. Ubuntu 20.04 LTS does not have GTK 4, so unless I make radical changes to my system, I won't be able to run this application. I spent about 6 hours upgrading my machine yesterday :roll_eyes: in order to use this application, so this would help tremendously and would probably help across platforms as well.

I'm fairly new to Flatpak, but I'm going to try to work on this myself to see if I can get it to run inside a Flatpak container. If I can't I'll try to contribute a PR toward this end. If anyone is more experienced with Flatpak, I'm more than happy to collaborate.

scott8035 commented 2 years ago

Flatpak is a good idea. There are going to be systems that are not built around Gtk4 for several years to come. Music enthusiasts delay upgrades longer than most people do because they took a lot of trouble to get their system tweaked right and they don't want to rock that boat.

That said... I was on a Gtk3 system, and Geoffrey showed me how to make everything work with Alsamixer. For the smaller Focusrite units--I have the 4i4--it's not that bad. You just have to know the one trick to get it moving (disabling the Mass Storage Device mode by unmuting the channel).

---scott

On Mon, Aug 1, 2022 at 2:23 PM Naftuli Kay @.***> wrote:

I'm on Ubuntu 20.04 (elementary OS) and there isn't really a way for me to upgrade to 22.04. Ubuntu 20.04 LTS does not have GTK 4, so unless I make radical changes to my system, I won't be able to run this application. I spent about 6 hours upgrading my machine yesterday 🙄 in order to use this application, so this would help tremendously and would probably help across platforms as well.

I'm fairly new to Flatpak, but I'm going to try to work on this myself to see if I can get it to run inside a Flatpak container. If I can't I'll try to contribute a PR toward this end. If anyone is more experienced with Flatpak, I'm more than happy to collaborate.

— Reply to this email directly, view it on GitHub https://github.com/geoffreybennett/alsa-scarlett-gui/issues/32, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBTSUK5PFNRMCXDGNMZM5TVXAP25ANCNFSM55ITTSDA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

naftulikay commented 2 years ago

@scott8035 omg can you link me to that? Yeah I only learned about the whole "disable storage mode" thing from this repository, is there a way to do it without this application?

I might not necessarily be recording for a little while, but I have an 18i8, two monitor speakers, and a guitar modeler with dual TS outputs which will be plugged into the back of the device. I'd like to be able to enable monitoring of those inputs for when I practice. If there's a way to do this without getting the application running, that would be awesome.

I'd love to be able to do Flatpak packaging, and while I've done native development and system packaging of applications, I'm new to Flatpak and I'm trying to find examples and figure out how to enable what the application needs. I assume it'll need access to X11/Wayland and Alsa and probably to the kernel driver, but what I've read so far is only really basic stuff.

scott8035 commented 2 years ago

You'll probably be able to figure it out more quickly than I'll be able to find it...not sure what forum its on.

First, you have to do all the kernel module setup stuff. Then, make sure alsamixer is installed. Then start alsamixer, select your device, and there are only two channels present at that time IIRC. The right-hand channel I believe is labelled "MSD" on top, and if you look at the lower part of that channel strip you should see an "MM". Use the arrow keys to make sure you've got that channel selected, and just hit the "M" key to unmute the channel. You may have to restart the device after that (power off/on), and if you've just configured the kernel module you'll probably want to reboot the whole system to try it out anyway.

On Mon, Aug 1, 2022 at 3:01 PM Naftuli Kay @.***> wrote:

@scott8035 https://github.com/scott8035 omg can you link me to that? Yeah I only learned about the whole "disable storage mode" thing from this repository, is there a way to do it without this application?

I might not necessarily be recording for a little while, but I have an 18i8, two monitor speakers, and a guitar modeler with dual TS outputs which will be plugged into the back of the device. I'd like to be able to enable monitoring of those inputs for when I practice. If there's a way to do this without getting the application running, that would be awesome.

I'd love to be able to do Flatpak packaging, and while I've done native development and system packaging of applications, I'm new to Flatpak and I'm trying to find examples and figure out how to enable what the application needs. I assume it'll need access to X11/Wayland and Alsa and probably to the kernel driver, but what I've read so far is only really basic stuff.

— Reply to this email directly, view it on GitHub https://github.com/geoffreybennett/alsa-scarlett-gui/issues/32#issuecomment-1201651568, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBTSUM3MB7ZILKUWH3SLBLVXAUI3ANCNFSM55ITTSDA . You are receiving this because you were mentioned.Message ID: @.***>

naftulikay commented 2 years ago

Links for myself and others so I have a reference point once I jump back in:

naftulikay commented 2 years ago

Also I found an application which uses GTK 4 with an up-to-date, relevant Flatpak build config: https://gitlab.gnome.org/raggesilver/blackbox

geoffreybennett commented 1 year ago

This is done now, thanks to @aledomu and @gwilherm.

skobkin commented 12 months ago

Is it possible to also publish it on Flathub?

geoffreybennett commented 12 months ago

I found https://docs.flathub.org/docs/for-app-authors/submission/ — are those the instructions I need to follow?

skobkin commented 12 months ago

AFAIK, yes. But I didn't publish on Flathub myself yet, so I can't say for sure.

jlahtela commented 11 months ago

I have tried to install this to LMDE 6 but I get error

error: org.gnome.Sdk/x86_64/45 not installed
Failed to init: Unable to find sdk org.gnome.Sdk version 45

I am not sure am I doing something wrong or is there another issue.

geoffreybennett commented 11 months ago

Hi @jlahtela,

I got the same error when building the Flatpak. Can you try the instructions at https://github.com/geoffreybennett/alsa-scarlett-gui/blob/master/INSTALL.md#flatpak — that was what worked for me to fix that error.

Regards, Geoffrey.

jlahtela commented 11 months ago

Uff yeah. I did not understand that it is same error basically. That did fix it.

However after I have run installation as it is instructed and I try to run it: flatpak run vu.b4.alsa-scarlett-gui i get error: error: app/vu.b4.alsa-scarlett-gui/x86_64/master not installed

geoffreybennett commented 11 months ago

Hi @jlahtela,

You might need to ask someone who knows something about flatpak. When I run this:

flatpak-builder --user --install --force-clean flatpak-build vu.b4.alsa-scarlett-gui.yml

it says near the end:

Installing app/vu.b4.alsa-scarlett-gui/x86_64/master

and then flatpak run vu.b4.alsa-scarlett-gui works.

Regards, Geoffrey.

allisonkarlitskaya commented 8 months ago

I found https://docs.flathub.org/docs/for-app-authors/submission/ — are those the instructions I need to follow?

hi. Is there any progress on this? Can I help? I've published apps on flathub before and I'm familiar with the process.