obs-backgroundremoval icon indicating copy to clipboard operation
obs-backgroundremoval copied to clipboard

Package as a snap or flatpak for a simple user friendly installation on Linux

Open heidiwenger opened this issue 4 years ago • 5 comments

For an easy installation, say, clicking "Install" at Snap Store in Ubuntu, which is the first Linux distro for many new users now coming to Linux. Solus and Manjaro support snaps AND flatpak by default. Fedora defaults flatpak i think, Linux Mint too.

As i read here, many seemed to end up in the world of pain attempting to build from source. Maybe it is time to attempt a creation of a simple pre-package? I mean, why not aim for a simple user friendly way on getting obs-backgroundremoval to go on Linux?

Could this by any chance be possible? What other options there are apart from snaps and flatpaks?

Thank you.

heidiwenger avatar Dec 29 '21 22:12 heidiwenger

I am having trouble too, getting segmentation fault in ubuntu 20.04. obs-studio installed through snap, OBS 27.1.3-modified installed through snap. obs-background removal gives segmentation fault. The last relevant lines and error messages for debugging: https://pastebin.com/raw/4KaqtT1W Hope you can help me figure it out.

anumerico avatar Dec 29 '21 22:12 anumerico

For those interested, here is a link for how to install in the Flatpak version and how to package into a Flatpack package.

Sethox avatar Feb 26 '22 08:02 Sethox

I put together a flatpak definition that seems to work for v0.4.0: https://gist.github.com/tam7t/dfc8d08ee1042de52921f2cd8a0ce2db

I start with OBS installed through flatpak (com.obsproject.Studio, https://feaneron.com/2022/02/14/obs-studio-27-2-on-flathub-get-it-while-its-hot/) then build/install these files as a plugin:

$ flatpak-builder build-dir com.obsproject.Studio.Plugin.backgroundremoval.yaml --force-clean
$ flatpak-builder --user --install --force-clean build-dir com.obsproject.Studio.Plugin.backgroundremoval.yaml

tam7t avatar May 29 '22 21:05 tam7t

Nice, thanks @tam7t This work as charm. @royshil Is possible to publish the plugin in flathub?

arpagon avatar Jul 08 '22 22:07 arpagon

Nice, thanks @tam7t This work as charm. @royshil Is possible to publish the plugin in flathub?

Oh yes that would be the optimal for the end user (and prolly for everyone else) and in my mind starting this thread.

Three files are required to publish on Flathub:

  1. The Flatpak manifest containing the sources and dependencies of the plugin. This file may be either YAML or JSON.

  2. AppStream metadata with useful information about your plugin, such as the name, a description, and the license.

  3. flathub.json with Flathub build options.

heidiwenger avatar Jul 13 '22 10:07 heidiwenger

I just tried this on an Ubuntu and got

flatpak-builder --user --install --force-clean build-dir com.obsproject.Studio.Plugin.backgroundremoval.yaml
error: org.kde.Sdk/x86_64/5.15-21.08 not installed
Failed to init: Unable to find sdk org.kde.Sdk//5.15-21.08 version stable

Any Ideas?

percybolmer avatar Dec 15 '22 10:12 percybolmer

Bumping this, any chance of getting this on Flathub?

ADHDefy avatar Dec 15 '22 23:12 ADHDefy

I'll get it on flathubMay take me a while as I'm swamped at work right now.I'll do my best! On Dec 15, 2022, at 6:39 PM, ADHDefy @.***> wrote: Bumping this, any chance of getting this on Flathub?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

royshil avatar Dec 16 '22 03:12 royshil

Thanks Roy, you are the man!

percybolmer avatar Dec 16 '22 06:12 percybolmer

I used @tam7t files and updated them a bit, to get it to work in a github workflow. If anyone just wants a flatpak file they can download and install so it works, I left the last build in my fork up - so you can grab the artifact from there and it can be installed with flatpak install --user <the_unzipped_file>: https://github.com/bergmannf/obs-backgroundremoval/actions/runs/4204728714

bergmannf avatar Feb 17 '23 14:02 bergmannf

@bergmannf We need help again with flatpak on the official ci build Can you take a look in the pull request please? 🙏

royshil avatar Mar 18 '23 14:03 royshil

This plugin is going to be registered on FlatHub 🎉 https://github.com/flathub/flathub/pull/4016

umireon avatar Mar 30 '23 09:03 umireon

You can install this plugin via this command:

flatpak install com.obsproject.Studio.Plugin.BackgroundRemoval

umireon avatar May 09 '23 07:05 umireon