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-07-11 11:51

Re: Flatpak on Sailfish OS
 
Turned out that it was due to ffmpeg update. To get it back

Code:

flatpak update --commit=6cc32e9f41c440fd05c2bbfcf0eeafee974c95a2d89f8f738492966d68ab8a8d org.freedesktop.Platform.ffmpeg-full
Reference: https://github.com/flatpak/flatpak/issues/3097

carmenfdezb 2020-07-11 13:18

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1568265)
Turned out that it was due to ffmpeg update. To get it back

Code:

flatpak update --commit=6cc32e9f41c440fd05c2bbfcf0eeafee974c95a2d89f8f738492966d68ab8a8d org.freedesktop.Platform.ffmpeg-full
Reference: https://github.com/flatpak/flatpak/issues/3097

Great!! It works again, thank you!

rinigus 2020-07-19 17:00

Re: Flatpak on Sailfish OS
 
Flatpak has been bumped to 1.6.5. Update as usual via zypper or some other tool.

edp17 2020-08-07 01:01

Re: Flatpak on Sailfish OS
 
I am trying to install angelfish but my device always gets rebooted right after the installation starts. After the reboot, it looks like the app is installed but in reality, it is not the case. When I try to remove it with 'flatpak remove --user angelfish', the device also instantly gets rebooted.
I am following the instructions from here. (Flatpak version is 1.6.5)
Is it just I, or somebody else is having similar issues? Thanks.

rinigus 2020-08-07 07:28

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by edp17 (Post 1568653)
I am trying to install angelfish but my device always gets rebooted right after the installation starts. After the reboot, it looks like the app is installed but in reality, it is not the case. When I try to remove it with 'flatpak remove --user angelfish', the device also instantly gets rebooted.
I am following the instructions from here. (Flatpak version is 1.6.5)
Is it just I, or somebody else is having similar issues? Thanks.

Have you tried to remove setuid from flatpak-bwrap?

edp17 2020-08-07 08:25

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1568660)
Have you tried to remove setuid from flatpak-bwrap?

Thank you this helped with the install/uninstall.

However, once I successfully installed the angelfish, when I start it with 'flatpak-runner org.kde.mobile.angelfish' while the setuid is removed from flatpak-bwrap, I get this:

Code:

[nemo@GalaxyNote4 ~]$ flatpak-runner org.kde.mobile.angelfish
Starting: org.kde.mobile.angelfish
[D] unknown:0 - Using Wayland-EGL
library "libgui.so" wasn't loaded and RTLD_NOLOAD prevented it
Wayland socket: ../../display/wayland-1
WAYLAND_DISPLAY="../../display/wayland-1" FLATPAK_MALIIT_CONTAINER_DBUS="unix:abstract=/tmp/dbus-2jgsVazrhw,guid=6dbb0b460b76ace39f6f63685f2d0ab1" flatpak run --env=QT_WAYLAND_FORCE_DPI=517 --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, likely because the kernel does not support user namespaces.  bwrap must be installed setuid on such systems.

The namespace is in the kernel because the 'zcat /proc/config.gz | grep CONFIG_NAMESPACES' gives me: 'CONFIG_NAMESPACES=y'

If I put the setguid back to the flatpak-bwrap, upon starting angelfish I get a screen whith the circle animation and the following in the console:
Code:

[nemo@GalaxyNote4 ~]$ flatpak-runner org.kde.mobile.angelfish
Starting: org.kde.mobile.angelfish
[D] unknown:0 - Using Wayland-EGL
library "libgui.so" wasn't loaded and RTLD_NOLOAD prevented it
Wayland socket: ../../display/wayland-2
WAYLAND_DISPLAY="../../display/wayland-2" FLATPAK_MALIIT_CONTAINER_DBUS="unix:abstract=/tmp/dbus-1MAKn0UhdE,guid=ff1e7aa17d091e23d6b5f2775f2d0bb5" flatpak run --env=QT_WAYLAND_FORCE_DPI=517 --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: execvp xdg-dbus-proxy: No such file or directory

The last line rings a bell about something but I don't remember. Can you help me out, please?

rinigus 2020-08-07 11:13

Re: Flatpak on Sailfish OS
 
xdg-dbus-proxy: do you have it installed? maybe try to install again flatpak-runner, that should pull all dependencies...

edp17 2020-08-07 12:10

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1568665)
xdg-dbus-proxy: do you have it installed? maybe try to install again flatpak-runner, that should pull all dependencies...

Yes, that is installed:

Code:

[nemo@GalaxyNote4 ~]$ sudo zypper se xdg-dbus-proxy
Loading repository data...
Reading installed packages...

S | Name                      | Summary                                     
--+----------------------------+-------------------------------------------
i | xdg-dbus-proxy            | Filtering proxy for D-Bus connections
  | xdg-dbus-proxy-debuginfo  | Debug information for package xdg-dbus-proxy
  | xdg-dbus-proxy-debugsource | Debug sources for package xdg-dbus-proxy


rinigus 2020-08-07 13:46

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by edp17 (Post 1568667)
Yes, that is installed:

Code:

[nemo@GalaxyNote4 ~]$ sudo zypper se xdg-dbus-proxy
Loading repository data...
Reading installed packages...

S | Name                      | Summary                                     
--+----------------------------+-------------------------------------------
i | xdg-dbus-proxy            | Filtering proxy for D-Bus connections
  | xdg-dbus-proxy-debuginfo  | Debug information for package xdg-dbus-proxy
  | xdg-dbus-proxy-debugsource | Debug sources for package xdg-dbus-proxy


Beats me. Maybe try to reinstall it. Don't remember seeing this error...

edp17 2020-08-07 14:50

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1568669)
Beats me. Maybe try to reinstall it. Don't remember seeing this error...

No, I wouldn't do that! Ever. :)
Instead, I'll go and double-check the requirements and try to reinstall everything. ;)
I wouldn't be surprised if this was a limitation/bug of my port for this device. I'll let you know the outcome here anyway. Thank you.


All times are GMT. The time now is 18:57.

vBulletin® Version 3.8.8