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)

taixzo 2020-04-10 13:13

Re: Flatpak on Sailfish OS
 
With the latest Firefox 75, it is now built for Flatpak. Any possibility of being able to run it on SFOS? I'm not sure whether it's GDK or QT or something else.

rinigus 2020-04-10 13:37

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by taixzo (Post 1566772)
With the latest Firefox 75, it is now built for Flatpak. Any possibility of being able to run it on SFOS? I'm not sure whether it's GDK or QT or something else.

you could always try, nothing will crash if its not working. but I expect that its for x86_64 only and I don't know their wayland status. I am sure its GDK as well

coderus 2020-04-10 14:44

Re: Flatpak on Sailfish OS
 
it uses org.gnome.Platform and failed with:
Code:

(firefox:4): Gdk-WARNING **: 17:43:24.967: The Wayland compositor does not provide any supported shell interface, not using Wayland display

coderus 2020-04-10 15:39

Re: Flatpak on Sailfish OS
 
can we build newer wayland to /opt and use it? :D

rinigus 2020-04-10 16:51

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by coderus (Post 1566775)
can we build newer wayland to /opt and use it? :D

wayland was supposed to be up to date. its qtwayland that is an issue. in theory (read I don't want to do it), it's probably possible to have wayland composer displayed on flatpak-runner QML item (through openGL, maybe) which is some current one. as some gtk based one. but, even if possible, its a lot of work and that will all be wasted as soon as we have newer qt. as with newer qt, it should be way easier to make such composer using its qtwayland.

coderus 2020-04-10 17:13

Re: Flatpak on Sailfish OS
 
we have a whole year to waste our time here :)

LouisDK 2020-04-11 11:39

Re: Flatpak on Sailfish OS
 
I managed to install flatpak on my Jolla C running 3.3.0.14 after running "zypper ref -f"

I then after rebooting activated the kdeapps and flatpak repos as described here: https://github.com/sailfishos-flatpak/main

Then I install angelfish, but when I try to run the app I get a message on the screen saying "Angelfish (Nightly) Application finished with exit code 1"

Shell output:
Code:

[nemo@host ~]$ flatpak-runner org.kde.mobile.angelfish
Starting: org.kde.mobile.angelfish
[D] unknown:0 - Using Wayland-EGL
Wayland socket: ../../display/wayland-1
WAYLAND_DISPLAY="../../display/wayland-1" FLATPAK_MALIIT_CONTAINER_DBUS="unix:abstract=/tmp/dbus-e4MC4yMLaS,guid=a8c12e36fb6c7a3600936b0f5e91ab2c" flatpak run --env=QT_WAYLAND_FORCE_DPI=293 --filesystem=/system:ro --filesystem=/vendor:ro --device=all --talk-name=org.maliit.server --env=QTWEBENGINE_CHROMIUM_FLAGS=--disable-gpu-compositing --num-raster-threads=1 --enable-viewport --disable-composited-antialiasing --env=QTWEBENGINE_DISABLE_GPU_THREAD=1 --env=QT_QUICK_CONTROLS_MOBILE=1 --env=QT_QUICK_CONTROLS_STYLE=Plasma --env=HYBRIS_EGLPLATFORM_DIR=/usr/lib/arm-linux-gnueabihf/GL/host/lib/libhybris --env=HYBRIS_LINKER_DIR=/usr/lib/arm-linux-gnueabihf/GL/host/lib/libhybris/linker --env=HYBRIS_LD_LIBRARY_PATH=/usr/lib/arm-linux-gnueabihf/GL/host/libexec/droid-hybris/system/lib:/usr/libexec/droid-hybris/system/lib:/vendor/lib:/system/lib --env=LD_LIBRARY_PATH=/usr/lib/arm-linux-gnueabihf/GL/host/lib org.kde.mobile.angelfish
[D] onCompleted:424 - Warning: specifying an object instance for initialPage is sub-optimal - prefer to use a Component
[W] unknown:53 - file:///usr/share/flatpak-runner/qml/main.qml:53:26: Unable to assign [undefined] to bool
bwrap: Creating new namespace failed: Invalid argument
error: ldconfig failed, exit status 256
[D] expression for onExit:59 - Skipping quit as it will hang the window. Proper exit is needed
^C
[nemo@host ~]$

Same story with Dolphin. Any ideas on how to get past this?

rinigus 2020-04-11 12:03

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by LouisDK (Post 1566782)
I managed to install flatpak on my Jolla C running 3.3.0.14 after running "zypper ref -f"

I then after rebooting activated the kdeapps and flatpak repos as described here: https://github.com/sailfishos-flatpak/main

Then I install angelfish, but when I try to run the app I get a message on the screen saying "Angelfish (Nightly) Application finished with exit code 1"

Shell output:
Code:

[nemo@host ~]$ flatpak-runner org.kde.mobile.angelfish
Starting: org.kde.mobile.angelfish
[D] unknown:0 - Using Wayland-EGL
Wayland socket: ../../display/wayland-1
WAYLAND_DISPLAY="../../display/wayland-1" FLATPAK_MALIIT_CONTAINER_DBUS="unix:abstract=/tmp/dbus-e4MC4yMLaS,guid=a8c12e36fb6c7a3600936b0f5e91ab2c" flatpak run --env=QT_WAYLAND_FORCE_DPI=293 --filesystem=/system:ro --filesystem=/vendor:ro --device=all --talk-name=org.maliit.server --env=QTWEBENGINE_CHROMIUM_FLAGS=--disable-gpu-compositing --num-raster-threads=1 --enable-viewport --disable-composited-antialiasing --env=QTWEBENGINE_DISABLE_GPU_THREAD=1 --env=QT_QUICK_CONTROLS_MOBILE=1 --env=QT_QUICK_CONTROLS_STYLE=Plasma --env=HYBRIS_EGLPLATFORM_DIR=/usr/lib/arm-linux-gnueabihf/GL/host/lib/libhybris --env=HYBRIS_LINKER_DIR=/usr/lib/arm-linux-gnueabihf/GL/host/lib/libhybris/linker --env=HYBRIS_LD_LIBRARY_PATH=/usr/lib/arm-linux-gnueabihf/GL/host/libexec/droid-hybris/system/lib:/usr/libexec/droid-hybris/system/lib:/vendor/lib:/system/lib --env=LD_LIBRARY_PATH=/usr/lib/arm-linux-gnueabihf/GL/host/lib org.kde.mobile.angelfish
[D] onCompleted:424 - Warning: specifying an object instance for initialPage is sub-optimal - prefer to use a Component
[W] unknown:53 - file:///usr/share/flatpak-runner/qml/main.qml:53:26: Unable to assign [undefined] to bool
bwrap: Creating new namespace failed: Invalid argument
error: ldconfig failed, exit status 256
[D] expression for onExit:59 - Skipping quit as it will hang the window. Proper exit is needed
^C
[nemo@host ~]$

Same story with Dolphin. Any ideas on how to get past this?

Looks like kernel does not support namespaces. If its newer than 3.5, complain to Jolla to enable it.

rinigus 2020-04-11 12:06

Re: Flatpak on Sailfish OS
 
PS: Maybe there is something else which is needed from kernel, I am not sure.

mattiviljanen 2020-04-12 09:45

Re: Flatpak on Sailfish OS
 
First of all, thanks for your hard work and help!

I finally managed to get Angelfish runnin on my Sony Xperia Z3 Compact Tablet with SFOS 3.3.0.14 EA. I get a lot of `gpg-connect-agent` messages during package installation, but it seems to work anyway.

I had to remove the setuid bit from `/usr/libecex/flatpak-bwrap` for installing Anglefish to workaround the rebooting issue, and I had to re-enable it actually starting it - and boy does it run well!

@LouisDK If you disabled the setuid bit, did you re-enable it after installation? If it's disabled Angelfish exits with error code 1, at least on my device.


All times are GMT. The time now is 21:54.

vBulletin® Version 3.8.8