maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Flatpak on Sailfish OS (https://talk.maemo.org/showthread.php?t=100909)

rinigus 2020-01-12 21:50

Re: Flatpak on Sailfish OS
 
I have made tmp solution that mounts Maliit plugin into any app running in Flatpak. This solution requires:

- flatpak-maliit-plugin-qt installed in SFOS
- app should use KDE 5.12 runtime

Just released flatpak-runner will add the plugin into container when app is running and keyboard can be used.

So, this means that we can use Flatpak applications as they are provided by KDE and Flathub. No recompile or hacking is needed. Assuming that they are QML/Qt 5.12 ...

Proper solution will be to add Maliit plugin as an extension of KDE runtime. Will talk to KDE devs about it.

rinigus 2020-01-18 09:14

Re: Flatpak on Sailfish OS
 
Yesterday, patches required to libhybris linker were merged and, I presume, will be part of the next SFOS release. Which would bring Flatpak support for many, if not all, devices. If you are using unofficial port, you could already ask maintainers to bump their libhybris to version 0.0.5.34 to get it working in between updates.

mankir 2020-01-18 09:59

Re: Flatpak on Sailfish OS
 
great work, angelfish is running now (a bit sluggish, but that is not the point). would be nice to get some audio apps working, audacity should be possible, i saw the mic levelmeter even with the last version... unfortunally flathub does not have an arm version of mixxx, would be crazy to dj with a mobile!

rinigus 2020-01-18 10:20

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by mankir (Post 1564471)
great work, angelfish is running now (a bit sluggish, but that is not the point). would be nice to get some audio apps working, audacity should be possible, i saw the mic levelmeter even with the last version... unfortunally flathub does not have an arm version of mixxx, would be crazy to dj with a mobile!

Audio, as such, should work. At least I can hear sound in videos from BBC. As for audacity, check if it fulfills requirements:

- should be Qt/QML 5.12
- no additional windows open.

Requirements explained in this thread

bennypr0fane 2020-01-25 15:32

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1564143)
Right now, Flatpak support is available for Sony Xperia Tama devices (unofficial port) with the hope that other devices will follow. Due to QtWayland limitations, only Qt/QML applications run well with Gdk apps refusing to start due to the absence of currently standard Wayland extensions.

What, pray tell, are Gdk apps? I suppose you are not talking about Google Glass Dev Kit? Maybe GTK is what you mean?

rinigus 2020-01-25 15:35

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by bennypr0fane (Post 1564748)
What, pray tell, are Gdk apps? I suppose you are not talking about Google Glass Dev Kit? Maybe GTK is what you mean?

see https://en.wikipedia.org/wiki/GDK#/m...chitecture.svg

Gtk sits on top of Gdk

rinigus 2020-01-26 21:43

Re: Flatpak on Sailfish OS
 
New flatpak runner is out: 0.4.0

This time it has been mainly about making it usable. From now on, you don't need to make GL extension manually anymore - its made for you on the first start of flatpak-runner.

The app takes care of refreshing the list of flatpak applications installed on your device and generates corresponding .desktop files. As a result, you can launch them as if they are SFOS apps from the app grid.

When started without hosting any app, it will show the list of installed flatpak apps and will allow you to tune environment for each of them. You can add default and app-specific env variables, change QT scaling and DPI parameters. For qtwebengine based browser, I recommend to set scaling to 2 or 3 (depending on your device) for better hidpi screen support.

Known bugs: https://together.jolla.com/question/...not-respected/

coderus 2020-02-03 19:25

Re: Flatpak on Sailfish OS
 
is tere a list/wiki with usable software? :D i am new to flatpak and no idea what i just installed :DD

rinigus 2020-02-03 20:07

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by coderus (Post 1565029)
is tere a list/wiki with usable software? :D i am new to flatpak and no idea what i just installed :DD

Right now, unless you wish to compile it, list is short:

- Angelfish available from KDE Flatpak repo, org.kde.mobile.angelfish; developed at https://invent.kde.org/jbbgameich/plasma-angelfish

- Maybe Matrix client Spectral, https://gitlab.com/spectral-im/spectral

We are limited to QML apps due to QtWayland 5.4 that we have and which is used in the compositor run by flatpak-runner. On top of that, flatpak-runner compositor is in particularly bad and assumes that it has only one window to show. Which does cause some issues. Depending on Qt update on SFOS, we will either have to work with QtWayland 5.4 or just wait with this limitation for now.

I'm mainly looking into improving the browser, Spectral has issues with touch controlled devices (issues filed). Browser, as distributed now, is slow. Bugfix is known and already applied, but may require further investigation on my side.

As for other software, much is written for desktop. Gtk apps are no go for now (too old QtWayland compositor).

In sum, right now, you have to get hands dirty to get software that you want and be ready to fix it. Shouldn't be a problem, right?

Did you check that your device has newer libhybris? libhybris-0.0.5.34 is required.

mosen 2020-02-03 20:25

Re: Flatpak on Sailfish OS
 
I am trying the github instructions on Proš but struggle at adding the repos.

Code:

[nemo@mosen-Pro1 ~]$ flatpak remote-add -vv --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
F: Opening user flatpak installation at path /home/nemo/.local/share/flatpak
F: Loading https://flathub.org/repo/flathub.flatpakrepo using libsoup
F: Received 4040 bytes
Usage: gpg-connect-agent [options] (-h for help)Usage: gpg-connect-agent [options] (-h for help)F: Imported 1 GPG key to remote "flathub"
F: Fetching summary file for remote ?flathub?
Warning: Could not update extra metadata for 'flathub': While fetching https://dl.flathub.org/repo/summary.sig: [28] Timeout was reached

The kdeapps repo added without that trouble but still if i do remote-ls:

Code:

flatpak remote-ls --user kdeapps
error: While fetching http://distribute.kde.org/flatpak-ap...g/summary.sig: [52] Server returned nothing (no headers, no data)

What may i miss?

When installing sth:
Code:

[nemo@mosen-Pro1 ~]$ flatpak install -vv --user org.kde.mobile.angelfish
F: Opening user flatpak installation at path /home/nemo/.local/share/flatpak
Looking for matches?
F: Fetching summary file for remote ?flathub?
F: Failed to download optional summary
F: An error was encountered searching remote ?flathub? for ?org.kde.mobile.angelfish?: Unable to load summary from remote flathub: While fetching https://dl.flathub.org/repo/summary.sig: [28] Timeout was reached
F: Fetching summary file for remote ?kdeapps?
Usage: gpg-connect-agent [options] (-h for help)Found similar ref(s) for ?org.kde.mobile.angelfish? in remote ?kdeapps? (user).
Use this remote? [Y/n]: Y
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Fetching summary file for remote ?kdeapps?
Usage: gpg-connect-agent [options] (-h for help)F: Transaction: install kdeapps:app/org.kde.mobile.angelfish/arm/master[*]
F: Looking for remote metadata updates for kdeapps
F: marking op install:app/org.kde.mobile.angelfish/arm/master resolved to 0317b5bae437bf982c139a3b9a8207fc4f736c6a56e81e9736911789dbd3ad5c
F: Fetching summary file for remote ?flathub?
F: Failed to download optional summary
error: The application org.kde.mobile.angelfish/arm/master requires the runtime org.kde.Platform/arm/5.12 which was not found
[nemo@mosen-Pro1 ~]$ flatpak install -vv --user org.kde.Platform/arm/5.12
F: Opening user flatpak installation at path /home/nemo/.local/share/flatpak
Looking for matches?
F: Fetching summary file for remote ?flathub?
F: Failed to download optional summary
F: An error was encountered searching remote ?flathub? for ?org.kde.Platform/arm/5.12?: Unable to load summary from remote flathub: While fetching https://dl.flathub.org/repo/summary.sig: [28] Timeout was reached
F: Fetching summary file for remote ?kdeapps?
Usage: gpg-connect-agent [options] (-h for help)error: No remote refs found similar to ?org.kde.Platform/arm/5.12?



All times are GMT. The time now is 15:33.

vBulletin® Version 3.8.8