Sunflower icon indicating copy to clipboard operation
Sunflower copied to clipboard

PoC Flatpak

Open tinywrkb opened this issue 4 years ago • 6 comments

I don't use Sunflower but I thought it's a pretty cool project and worth trying it out now with the new Python3 & GTK3 release.

You can find here a Flatpak manifest for the latest release. Build instructions in README.md at the top-level of that repo.
This is more like a proof-of-concept and a start point for a proper Flatpak package as there might be some limitations.
The main issue I noticed so far is with the Open with dialog doesn't seem like Portal aware.

tinywrkb avatar Jun 07 '20 03:06 tinywrkb

Thank you. This is a great help and saves me ton of time. Much appreciated.

MeanEYE avatar Jun 07 '20 13:06 MeanEYE

Nice to hear this helps.
Note that:

  • I updated the manifest and removed the python-distutils-extra dependency.
  • The runtime and sdk actually have python-chardet but setup.py fails to find it.
  • A minimal appdata.xml should be added and installed (preferably via setup.py) to $PREFIX/share/appdata/org.sunflower_fm.sunflower.appdata.xml

tinywrkb avatar Jun 07 '20 14:06 tinywrkb

Thank you!

MeanEYE avatar Jun 07 '20 14:06 MeanEYE

How does one publish flatpaks?

MeanEYE avatar Jun 07 '20 14:06 MeanEYE

You probably want to read these:

And maybe glance at the Portal docs though it's out-of-data (missing the Secret Portal) so your distro probably has the recent v1.7.2 docs in /usr/share/doc/xdg-desktop-portal/portal-docs.html.

tinywrkb avatar Jun 07 '20 15:06 tinywrkb

Thanks I will!

MeanEYE avatar Jun 07 '20 15:06 MeanEYE