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)

claustn 2020-08-10 07:40

Re: Flatpak on Sailfish OS
 
I've just bought a XA2 and installed official Sailfish on it, could you please point me to the updated procedure to have Angelfish running?

rinigus 2020-08-10 07:41

Re: Flatpak on Sailfish OS
 
As far as I know, follow the docs. If something breaks and there are some workarounds needed, please submit pull request to update the docs as well.

aspergerguy 2020-08-10 18:34

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by claustn (Post 1568690)
could you please point me to the updated procedure to have Angelfish running?

After adding rinigus repo and install flatpack-runner and rebooting first stage went well but seemed to hang at this point and had to manually reboot, but perhaps I didn't leave it long enough:
Code:

Sailfish OS 3.3.0.16 (Rokua)
'---
[nemo@XperiaXA2-DualSIM ~]$ devel-su
Password:
[root@XperiaXA2-DualSIM nemo]# ssu addrepo rinigus-flatpak http://repo.merproject.org/obs/home:/rinigus:/flatpak/sailfish_latest_armv7hl/
[root@XperiaXA2-DualSIM nemo]# pkcon refresh
Refreshing cache                                                               
Waiting for authentication                                                   
Refreshing software list                                                     
Finished                                                                     
[root@XperiaXA2-DualSIM nemo]# pkcon install flatpak-runner
Resolving                                                                     
Querying                                                                       
Testing changes                                                               
Finished                                      [                      ] (0%) 
The following packages have to be installed:
 flatpak-1.6.5.0-1.25.1.jolla.armv7hl        Application deployment framework for desktop apps
 flatpak-runner-0.8.5-1.35.2.jolla.armv7hl        Flatpak runner
 flatpak-session-helper-1.6.5.0-1.25.1.jolla.armv7hl        User D-Bus service used by flatpak and others
 gdk-pixbuf-2.38.1-1.2.1.jolla.armv7hl        An image loading library
 libappstream-glib-0.7.15.1-1.14.1.jolla.armv7hl        Library for AppStream metadata
 libcroco-0.6.13-1.2.1.jolla.armv7hl        A CSS2 parsing library
 libpython3_81_0-3.8.1+git1-1.8.1.jolla.armv7hl        Python Interpreter shared library
 librsvg-2.40.20-1.2.1.jolla.armv7hl        An SVG library based on cairo
 libseccomp-2.4.2-1.2.1.jolla.armv7hl        An Enhanced Seccomp (mode 2) Helper Library
 ostree-libs-2019.6-1.14.2.jolla.armv7hl        Development headers for ostree
 pyotherside-qml-plugin-python3-qt5-1.5.9+git2-1.5.1.jolla.armv7hl        Asynchronous Python 3 Bindings for Qt 5
 python3-base-3.8.1+git1-1.8.1.jolla.armv7hl        Python3 Interpreter
 xdg-dbus-proxy-0.1.2-1.5.2.jolla.armv7hl        Filtering proxy for D-Bus connections
 xdg-desktop-portal-1.4.2-1.10.10.jolla.armv7hl        Portal frontend service to flatpak
Proceed with changes? [N/y] y

                                                                             
Installing                                                                   
Refreshing software list                                                     
Querying                                                                     
Resolving dependencies                                                       
Installing packages                                                           
Downloading packages                                                         
Installing packages                                                           
Finished                                                                     
[root@XperiaXA2-DualSIM nemo]# exit
exit
[nemo@XperiaXA2-DualSIM ~]$ flatpak-runner
Starting empty Wayland server and enabling settings
[D] unknown:0 - Using Wayland-EGL
Wayland socket: ../../display/wayland-1
[D] onCompleted:424 - Warning: specifying an object instance for initialPage is sub-optimal - prefer to use a Component
[D] unknown:0 - Got library name:  "/usr/lib/qt5/qml/io/thp/pyotherside/libpyothersideplugin.so"
Synchronize main libraries
  libEGL.so.1
  libEGL.so.1.0.0
  libGLESv2.so.2
  libGLESv2.so.2.0.0
  libandroid-properties.so.1
  libandroid-properties.so.1.0.0
  libgralloc.so
  libgralloc.so.1
  libgralloc.so.1.0.0
  libhardware.so.2
  libhardware.so.2.0.0
  libhwc2.so
  libhwc2.so.1
  libhwc2.so.1.0.0
  libhybris-common.so.1
  libhybris-common.so.1.0.0
  libhybris-eglplatformcommon.so.1
  libhybris-eglplatformcommon.so.1.0.0
  libhybris-hwcomposerwindow.so.1
  libhybris-hwcomposerwindow.so.1.0.0
  libsync.so.2
  libsync.so.2.0.0
  libwayland-egl.so.1
  libwayland-egl.so.1.0.0
  libwifi.so.1
  libwifi.so.1.0.0

Synchronize /usr/lib/libhybris
sending incremental file list
./
eglplatform_fbdev.so
eglplatform_hwcomposer.so
eglplatform_null.so
eglplatform_wayland.so
linker/
linker/jb.la
linker/jb.so
linker/mm.la
linker/mm.so
linker/n.la
linker/n.so
linker/o.la
linker/o.so

sent 556,085 bytes  received 259 bytes  1,112,688.00 bytes/sec
total size is 555,163  speedup is 1.00

Synchronize /usr/libexec/droid-hybris
sending incremental file list
./
lib-dev-alog/
lib-dev-alog/libcutils.so -> ../system/lib/libcutils.so
lib-dev-alog/liblog.so -> ../system/lib/liblog.so
lib64-dev-alog/
lib64-dev-alog/libcutils.so -> ../system/lib64/libcutils.so
lib64-dev-alog/liblog.so -> ../system/lib64/liblog.so
system/
system/bin/
system/bin/adbd
system/bin/bootctl
system/bin/e2fsdroid
system/bin/linker
system/bin/linker64
system/bin/linker_asan -> linker
system/bin/linker_asan64 -> linker64
system/bin/logcat
system/bin/miniafservice
system/bin/minimediaservice
system/bin/minisfservice
system/bin/mke2fs
system/bin/servicemanager
system/bin/updater
system/etc/
system/etc/init/
system/etc/init/android.hardware.keymaster@3.0-service-qti.rc
system/etc/init/audioserver.rc
system/etc/init/cameraserver.rc
system/etc/init/ecclist.rc
system/etc/init/hwservicemanager.rc
system/etc/init/hybris_extras.rc
system/etc/init/keystore.rc
system/etc/init/lmkd.rc
system/etc/init/mediaserver.rc
system/etc/init/netd.rc
system/etc/init/servicemanager.rc
system/etc/init/surfaceflinger.rc
system/etc/init/vndservicemanager.rc
system/etc/init/vold.rc
system/etc/init/wificond.rc
system/lib/
system/lib/android.frameworks.vr.composer@1.0.so
system/lib/android.hardware.audio.common@2.0-util.so
system/lib/android.hardware.audio.common@2.0.so
system/lib/android.hardware.audio.effect@2.0.so
system/lib/android.hardware.audio@2.0.so
system/lib/android.hardware.boot@1.0.so
system/lib/android.hardware.broadcastradio@1.0.so
system/lib/android.hardware.broadcastradio@1.1.so
system/lib/android.hardware.camera.common@1.0.so
system/lib/android.hardware.camera.device@1.0.so
system/lib/android.hardware.camera.device@3.2.so
system/lib/android.hardware.camera.device@3.3.so
system/lib/android.hardware.camera.provider@2.4.so
system/lib/android.hardware.cas.native@1.0.so
system/lib/android.hardware.cas@1.0.so
system/lib/android.hardware.configstore-utils.so
system/lib/android.hardware.configstore@1.0.so
system/lib/android.hardware.drm@1.0.so
system/lib/android.hardware.gnss@1.0.so
system/lib/android.hardware.graphics.allocator@2.0.so
system/lib/android.hardware.graphics.bufferqueue@1.0.so
system/lib/android.hardware.graphics.common@1.0.so
system/lib/android.hardware.graphics.composer@2.1.so
system/lib/android.hardware.graphics.mapper@2.0.so
system/lib/android.hardware.media.omx@1.0.so
system/lib/android.hardware.media@1.0.so
system/lib/android.hardware.memtrack@1.0.so
system/lib/android.hardware.nfc@1.0.so
system/lib/android.hardware.power@1.0.so
system/lib/android.hardware.radio.deprecated@1.0.so
system/lib/android.hardware.radio@1.0.so
system/lib/android.hardware.radio@1.1.so
system/lib/android.hardware.renderscript@1.0.so
system/lib/android.hardware.sensors@1.0.so
system/lib/android.hardware.soundtrigger@2.0.so
system/lib/android.hardware.thermal@1.0.so
system/lib/android.hardware.vibrator@1.0.so
system/lib/android.hidl.allocator@1.0.so
system/lib/android.hidl.memory@1.0.so
system/lib/android.hidl.token@1.0-utils.so
system/lib/android.hidl.token@1.0.so
system/lib/ld-android.so
system/lib/libEGL.so
system/lib/libGLESv1_CM.so
system/lib/libGLESv2.so
system/lib/libGLESv3.so
system/lib/libaudioflingerglue.so
system/lib/libaudioroute.so
system/lib/libaudioutils.so
system/lib/libbacktrace.so
system/lib/libbase.so
system/lib/libbinder.so
system/lib/libc++.so
system/lib/libc.so
system/lib/libcamera_metadata.so
system/lib/libcap.so
system/lib/libcrypto.so
system/lib/libcutils.so
system/lib/libdl.so
system/lib/libdroidmedia.so
system/lib/libeffectsconfig.so
system/lib/libexpat.so
system/lib/libfmq.so
system/lib/libgraphicsenv.so
system/lib/libgui.so
system/lib/libhardware.so
system/lib/libhardware_legacy.so
system/lib/libhidlbase.so
system/lib/libhidlmemory.so
system/lib/libhidltransport.so
system/lib/libhwbinder.so
system/lib/libhwc2_compat_layer.so
system/lib/liblog.so
system/lib/liblzma.so
system/lib/libm.so
system/lib/libmedia_omx.so
system/lib/libminisf.so
system/lib/libnativebridge.so
system/lib/libnativehelper.so
system/lib/libnativeloader.so
system/lib/libnativewindow.so
system/lib/libpowermanager.so
system/lib/libprotobuf-cpp-full.so
system/lib/libprotobuf-cpp-lite.so
system/lib/libselinux_stubs.so
system/lib/libspeexresampler.so
system/lib/libstagefright_foundation.so
system/lib/libstagefright_omx.so
system/lib/libstagefright_omx_utils.so
system/lib/libstagefright_xmlparser.so
system/lib/libsurfaceflinger.so
system/lib/libsync.so
system/lib/libtinyalsa.so
system/lib/libtinyxml2.so
system/lib/libui.so
system/lib/libunwind.so
system/lib/libutils.so
system/lib/libvndksupport.so
system/lib/libvulkan.so
system/lib/libz.so
system/lib/libziparchive.so
system/lib64/
system/lib64/android.frameworks.vr.composer@1.0.so
system/lib64/android.hardware.audio.common@2.0-util.so
system/lib64/android.hardware.audio.common@2.0.so
system/lib64/android.hardware.audio.effect@2.0.so
system/lib64/android.hardware.audio@2.0.so
system/lib64/android.hardware.biometrics.fingerprint@2.1.so
system/lib64/android.hardware.bluetooth@1.0.so
system/lib64/android.hardware.boot@1.0.so
system/lib64/android.hardware.camera.common@1.0.so
system/lib64/android.hardware.camera.device@1.0.so
system/lib64/android.hardware.camera.device@3.2.so
system/lib64/android.hardware.camera.device@3.3.so
system/lib64/android.hardware.camera.provider@2.4.so
system/lib64/android.hardware.configstore-utils.so
system/lib64/android.hardware.configstore@1.0.so
system/lib64/android.hardware.gnss@1.0.so
system/lib64/android.hardware.graphics.allocator@2.0.so
system/lib64/android.hardware.graphics.bufferqueue@1.0.so
system/lib64/android.hardware.graphics.common@1.0.so
system/lib64/android.hardware.graphics.composer@2.1.so
system/lib64/android.hardware.graphics.mapper@2.0.so
system/lib64/android.hardware.light@2.0.so
system/lib64/android.hardware.media@1.0.so
system/lib64/android.hardware.memtrack@1.0.so
system/lib64/android.hardware.nfc@1.0.so
system/lib64/android.hardware.power@1.0.so
system/lib64/android.hardware.radio.deprecated@1.0.so
system/lib64/android.hardware.radio@1.0.so
system/lib64/android.hardware.radio@1.1.so
system/lib64/android.hardware.renderscript@1.0.so
system/lib64/android.hardware.sensors@1.0.so
system/lib64/android.hardware.thermal@1.0.so
system/lib64/android.hardware.usb@1.0.so
system/lib64/android.hardware.vibrator@1.0.so
system/lib64/android.hardware.wifi.supplicant@1.0.so
system/lib64/android.hardware.wifi@1.0.so
system/lib64/android.hardware.wifi@1.1.so
system/lib64/android.hidl.allocator@1.0.so
system/lib64/android.hidl.memory@1.0.so
system/lib64/android.hidl.token@1.0-utils.so
system/lib64/android.hidl.token@1.0.so
system/lib64/android.system.wifi.keystore@1.0.so
system/lib64/ld-android.so
system/lib64/libEGL.so
system/lib64/libGLESv1_CM.so
system/lib64/libGLESv2.so
system/lib64/libGLESv3.so
system/lib64/libaudioroute.so
system/lib64/libaudioutils.so
system/lib64/libbacktrace.so
system/lib64/libbase.so
system/lib64/libbinder.so
system/lib64/libc++.so
system/lib64/libc.so
system/lib64/libcamera_metadata.so
system/lib64/libcap.so
system/lib64/libclang_rt.ubsan_standalone-aarch64-android.so
system/lib64/libcrypto.so
system/lib64/libcutils.so
system/lib64/libdl.so
system/lib64/libeffectsconfig.so
system/lib64/libexpat.so
system/lib64/libext2_blkid.so
system/lib64/libext2_com_err.so
system/lib64/libext2_e2p.so
system/lib64/libext2_misc.so
system/lib64/libext2_quota.so
system/lib64/libext2_uuid.so
system/lib64/libext2fs.so
system/lib64/libfmq.so
system/lib64/libgraphicsenv.so
system/lib64/libgui.so
system/lib64/libhardware.so
system/lib64/libhardware_legacy.so
system/lib64/libhidlbase.so
system/lib64/libhidlmemory.so
system/lib64/libhidltransport.so
system/lib64/libhwbinder.so
system/lib64/libhwc2_compat_layer.so
system/lib64/libicuuc.so
system/lib64/libion.so
system/lib64/liblog.so
system/lib64/liblogcat.so
system/lib64/liblzma.so
system/lib64/libm.so
system/lib64/libnativebridge.so
system/lib64/libnativehelper.so
system/lib64/libnativeloader.so
system/lib64/libnativewindow.so
system/lib64/libnl.so
system/lib64/libpackagelistparser.so
system/lib64/libpcre2.so
system/lib64/libpcrecpp.so
system/lib64/libpowermanager.so
system/lib64/libprotobuf-cpp-full.so
system/lib64/libprotobuf-cpp-lite.so
system/lib64/libselinux.so
system/lib64/libselinux_stubs.so
system/lib64/libsparse.so
system/lib64/libspeexresampler.so
system/lib64/libssl.so
system/lib64/libstagefright_foundation.so
system/lib64/libsurfaceflinger.so
system/lib64/libsync.so
system/lib64/libtinyalsa.so
system/lib64/libtinyxml2.so
system/lib64/libui.so
system/lib64/libunwind.so
system/lib64/libutils.so
system/lib64/libvndksupport.so
system/lib64/libvulkan.so
system/lib64/libwifi-system-iface.so
system/lib64/libz.so
system/lib64/libziparchive.so

sent 56,837,858 bytes  received 4,679 bytes  22,737,014.80 bytes/sec
total size is 56,807,371  speedup is 1.00


Broadcast message from root@XperiaXA2-DualSIM (Mon 2020-08-10 17:50:20 BST):

The system is going down for reboot NOW!

Although following installation instructions at https://github.com/sailfishos-flatpak/main things started to go wrong at this point and ended up using:
Code:

[nemo@XperiaXA2-DualSIM ~]$ flatpak install -vv --user org.kde.mobile.angelfish
with successful result as here:https://pastebin.com/9zRBd9w2

rinigus 2020-08-23 19:23

Re: Flatpak on Sailfish OS
 
New release is out - 0.8.6 - with the updated translations. Thanks to all the translators!

Some news regarding Angelfish:

- due to the bug/feature in KConfig and the fact that flatpak runner closes Angelfish rather abruptly, user settings (search engine, button preferences) are not saved on exit. If you made some changes that you would like to keep, please kill angelfish process from terminal (not with sig 9 though). That would save the settings before closing. I have not found any good way of doing it on flatpak-runner side.

- JBB has added support for single instance. Should allow now to open URL in Angelfish from outside, no mime type support yet done/merged

claustn 2020-08-24 09:45

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1568881)
New release is out - 0.8.6 - with the updated translations. Thanks to all the translators!

Some news regarding Angelfish:

- due to the bug/feature in KConfig and the fact that flatpak runner closes Angelfish rather abruptly, user settings (search engine, button preferences) are not saved on exit. If you made some changes that you would like to keep, please kill angelfish process from terminal (not with sig 9 though). That would save the settings before closing. I have not found any good way of doing it on flatpak-runner side.

- JBB has added support for single instance. Should allow now to open URL in Angelfish from outside, no mime type support yet done/merged

Could you please give an example on how to properly kill the process?
I see that copy and paste between Angelfish and Sailfish doesn't work, is it a known bug?

rinigus 2020-08-24 10:07

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by claustn (Post 1568889)
Could you please give an example on how to properly kill the process?
I see that copy and paste between Angelfish and Sailfish doesn't work, is it a known bug?

with "ps -u nemo | grep angel" you will get a pid that can be used for killing

copy and paste works from sfos -> angelfish, not in reverse. it is known issue, no solution on sight.

claustn 2020-09-07 08:51

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1568890)
with "ps -u nemo | grep angel" you will get a pid that can be used for killing

copy and paste works from sfos -> angelfish, not in reverse. it is known issue, no solution on sight.

Settings preferences are still not saved, what I did:
  1. ps -u nemo | grep angel
  2. kill PID
  3. close app cover showing (Application finished with exit code 143)
  4. reopen Angelfish

Some more questions:
Will be possible to speed up the opening of Angelfish?
How to prevent opening old tabs?
Is it possible to have some kind of adblock? (Defender from openrepos freezed my XA2)

Thanks for your work!

rinigus 2020-09-07 09:09

Re: Flatpak on Sailfish OS
 
Re settings: don't know why it is not saving for you :( . sounds like you did it right. Is the version that you use updated to the latest?

Re speed: no idea

Re old tabs: you will have to write the corresponding code enabling such option in settings and upstream it

Re adblock: there is interest (judging from an open issue), but nobody worked on it.

claustn 2020-09-07 09:41

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1569151)
Re settings: don't know why it is not saving for you :( . sounds like you did it right. Is the version that you use updated to the latest?

Ok updating flatpak and angelfish solved the problems, now settings are correctly saved.

carmenfdezb 2020-10-09 19:55

Re: Flatpak on Sailfish OS
 
I've been testing kotatogram as a telegram client and I must say that kotatogram works much better than telegram desktop and it doesn't crash with animated stikers.


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

vBulletin® Version 3.8.8