bandwhich icon indicating copy to clipboard operation
bandwhich copied to clipboard

Add a flatpak package

Open sigmaSd opened this issue 1 year ago • 8 comments

I was not a recommender of flatpak, but recently I've been using fedora, and through gnome software I keep discovering really cool projects.

I think creating a fltapk have 2 major benefits:

  • It can be published to flathub and it will be become discoverable in stores like gnome software of flathub it self
  • It removes the need to use sudo, and enter password, because we can package a policy kit rule with it ?

with the other benefits of working on more distributions not worrying about older libraries etc

If this is desirable, https://github.com/flathub/com.helix_editor.Helix/blob/master/com.helix_editor.Helix.yml is a good starting place

sigmaSd avatar Oct 29 '23 10:10 sigmaSd

To be honest, I have zero experience with Flatpak packaging. I'm not opposed to the idea though - although I personally don't use Flatpak, I can well understand its appeal.

TBH I'm a bit intoxicated at the moment of this reply, so I am not able to make any commitments. There is one thing I would like to ask though: would you @sigmaSd like to be added as a collaborator? That would add a bit more resilience to this project (I'm perfectly okay if your reply is no, so please don't feel pressured).

cyqsimon avatar Oct 29 '23 13:10 cyqsimon

Thanks @cyqsimon that would be great, I currently can't allocate much time, but I can see myself helping with smaller things and I guess its not bad to have another pair of eyes for PRs issues etc.

Also I'll give this issue a try, shouldn't be that hard (hopefully)

Get Well soon!

sigmaSd avatar Oct 29 '23 14:10 sigmaSd

Unfortunately this doesn't seem feasible because the flatpak sandbox doesn't allow listening to the network privileges (the ones set with setcap) More info here https://github.com/flathub/org.wireshark.Wireshark/issues/4

sigmaSd avatar Oct 30 '23 18:10 sigmaSd

Thanks @cyqsimon that would be great, I currently can't allocate much time, but I can see myself helping with smaller things and I guess its not bad to have another pair of eyes for PRs issues etc.

@imsnif can you please make @sigmaSd a collaborator? They've been contributing to this repo for far longer than I have been, and are more than qualified for this job. I would love to have more hands on deck. Thanks in advance.

cyqsimon avatar Oct 31 '23 03:10 cyqsimon

Done

imsnif avatar Oct 31 '23 08:10 imsnif

Thanks appreciated

sigmaSd avatar Oct 31 '23 11:10 sigmaSd

Flatpak package is possible , if the app is separated to a frontend and a privileged backed (this issue basically https://github.com/imsnif/bandwhich/issues/76)

the flatpak package would do:

  • copy the backend to XDG_DATA_DIR (accessible from faltapk)
  • use flatpak-spawn --host pkexec backend

there are some packages in flathub that use flatpak-spawn --host pkexec like https://gitlab.gnome.org/World/bustle/

sigmaSd avatar Feb 10 '24 11:02 sigmaSd

Flatpak package is possible , if the app is separated to a frontend and a privileged backed (this issue basically #76)

the flatpak package would do:

  • copy the backend to XDG_DATA_DIR (accessible from faltapk)
  • use flatpak-spawn --host pkexec backend

there are some packages in flathub that use flatpak-spawn --host pkexec like https://gitlab.gnome.org/World/bustle/

Sounds reasonable, but we probably should do this once I complete the rewrite (which is still WIP on my local machine).

I will reopen this for the time being.

cyqsimon avatar Feb 12 '24 16:02 cyqsimon