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-03-03 18:50

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by taixzo (Post 1565886)
Is it possible to change the Plasma theme? I realize making it tie into the ambiance theme is unlikely, but at least being able to set a dark mode would be nice.

I'd love to have it darker as well. Haven't searched extensively and don't have solution for it. Please feel free to look for how to do it. I saw some screenshots with darker theme somewhere and it does switch colors on desktop if you shift to dark gnome theme, for example.

taixzo 2020-03-03 20:37

Re: Flatpak on Sailfish OS
 
I did a bit of research and it seems there's a command "lookandfeeltool" to change the Plasma theme; however I'm not sure how to find out if I have it installed in the sandbox (running "flatpak run --command=sh org.kde.angelfish" just hangs, though launching the actual app works just fine).

rinigus 2020-03-03 22:16

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by taixzo (Post 1565891)
I did a bit of research and it seems there's a command "lookandfeeltool" to change the Plasma theme; however I'm not sure how to find out if I have it installed in the sandbox (running "flatpak run --command=sh org.kde.angelfish" just hangs, though launching the actual app works just fine).

Thanks! Strange that it hangs, seems to be correct. I don't see that program, though. There maybe some other ways to work in Flatpak as they have some extensions with themes. Would require more investigation, it seems.

rinigus 2020-03-04 16:04

Re: Flatpak on Sailfish OS
 
taixzo:

looks like we can add file ~/.var/app/org.kde.mobile.angelfish/config/kdeglobals with

Code:

[Theme]
name=breeze-dark

Now will have to think how to make it user friendly.

taixzo 2020-03-04 18:27

Re: Flatpak on Sailfish OS
 
Thanks! Also, it seems that it doesn't hang forever - after leaving it along for a few hours, I came back and discovered that I was finally in a flatpak shell.

rinigus 2020-03-04 20:40

Re: Flatpak on Sailfish OS
 
New Flatpak Runner is out: 0.7.0

This adds simple theme selection in KDE apps. By default, it follows Silica theme and sets KDE theme either to dark or light accordingly.
You could also specify light or dark theme and opt out of the feature.

Settings are done via file in home folder (~/.var/app/FLATPAK-ID/config/kdeglobals) that is overwritten every time you start the app.
So, if you opt out, either edit or remove the file accordingly.

Let me know if there are issues with it, as testing was rather limited.

coderus 2020-03-05 12:07

Re: Flatpak on Sailfish OS
 
org.telegram.desktop from flathub is working after adding env QT_QPA_PLATFORM=wayland, then crashing on some animated stickers ith:
Code:

[swscaler @ 0xe32af050] No accelerated colorspace conversion found from yuv420p to bgra.

rinigus 2020-03-05 12:26

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by coderus (Post 1565935)
org.telegram.desktop from flathub is working after adding env QT_QPA_PLATFORM=wayland, then crashing on some animated stickers ith:
Code:

[swscaler @ 0xe32af050] No accelerated colorspace conversion found from yuv420p to bgra.

For some reason they have `--env=QT_QPA_PLATFORM=xcb` specified at https://github.com/flathub/org.teleg...sktop.json#L20 . Commit at https://github.com/flathub/org.teleg...558ad02bd81a3c

I guess you have to check and maybe file issue with Telegram.

mosen 2020-03-05 14:34

Re: Flatpak on Sailfish OS
 
Finally i was able to join the (non-sideload) flatpak party by simply trying form workplace connection :P

Still, same issues from my home T-Online connection. I have Routers & Firewalls set up exactly the same in both locations so i suspect something on T-Online Germany side blocking connection to the repo somehow?
I can open the logo.svg icon specified in the remote tho. Weird.

https://dl.flathub.org/repo/logo.svg

taixzo 2020-03-05 15:56

Re: Flatpak on Sailfish OS
 
I have a similar issue with it only working from some connections; the issue appears to be that DNS is returning ipv6 addresses for the repo domains, but flatpak doesn't seem to know what to do with them. It works fine on networks where ipv4 is prioritized.

coderus 2020-03-05 16:53

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1565936)
For some reason they have `--env=QT_QPA_PLATFORM=xcb` specified at https://github.com/flathub/org.teleg...sktop.json#L20 . Commit at https://github.com/flathub/org.teleg...558ad02bd81a3c

I guess you have to check and maybe file issue with Telegram.

okay thats minor. but ddo you have any thoughts of swscaler?

found this: https://forum.manjaro.org/t/viewing-...oarm/119131/17

and this: https://github.com/AOSC-Dev/aosc-os-...ale-hack.patch

...

coderus 2020-03-05 19:25

Re: Flatpak on Sailfish OS
 
pleaase add options to erase user data of flatpak

rinigus 2020-03-05 19:55

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by taixzo (Post 1565940)
I have a similar issue with it only working from some connections; the issue appears to be that DNS is returning ipv6 addresses for the repo domains, but flatpak doesn't seem to know what to do with them. It works fine on networks where ipv4 is prioritized.

Interesting. I wonder if its also extended to apps in Flatpak? I don't know what its using for downloading, maybe its IPv4 limited.

rinigus 2020-03-05 19:58

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by coderus (Post 1565942)
okay thats minor. but ddo you have any thoughts of swscaler?

found this: https://forum.manjaro.org/t/viewing-...oarm/119131/17

and this: https://github.com/AOSC-Dev/aosc-os-...ale-hack.patch

...

Looks like ARM-specific FFMPEG issue? Or its interaction with Telegram. As for thoughts, none :)


Quote:

Originally Posted by coderus (Post 1565944)
pleaase add options to erase user data of flatpak

Which data do you think about? One in .var or in .local/share/flatpak? While latter is possible via uninstall, the one in .var behaves similar to SFOS apps data

rinigus 2020-03-05 20:17

Re: Flatpak on Sailfish OS
 
Re FFMPEG: I wonder if there is some simple example with ffmpeg? For example running something in flatpak environment with the extension installed.

coderus 2020-03-05 20:27

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1565947)
Looks like ARM-specific FFMPEG issue? Or its interaction with Telegram. As for thoughts, none :)




Which data do you think about? One in .var or in .local/share/flatpak? While latter is possible via uninstall, the one in .var behaves similar to SFOS apps data

animated stickers are lottie stuff, no idea if ffmeg is affect at all

for data i mean same what user can do with
Code:

flatpak uninstall --delete-data appname
but without uninstalling app? sometimes i screw app settings and want to start from scratch. reinstalling is an option, but easy way via flatpak runner can be simple solution.

taixzo 2020-03-05 20:28

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1565946)
Interesting. I wonder if its also extended to apps in Flatpak? I don't know what its using for downloading, maybe its IPv4 limited.

I don't think so, because Angelfish doesn't seem to have any problem loading websites on that same network.
Where do you find Plasma flatpak apps? I had a look on flathub but there don't seem to be any there, and none of the KDE apps from there that I tried (e.g. kgoldrunner) worked.

rinigus 2020-03-05 20:41

Re: Flatpak on Sailfish OS
 
KDE Flatpak apps are in kdeapps:

Code:

flatpak remote-add --user --if-not-exists kdeapps --from https://distribute.kde.org/kdeapps.flatpakrepo
So, you could use remote-ls command to see what's available - far from easy to use flathub. I am using only Angelfish. There is a hope that Spectral (Matrix client) will get ported to Kirigami and will be usable on mobile. So far its not.

As for other apps, I haven't tried much. Many don't work, as far as I remember. For me, browser is good enough reason to use it :)

PS: Pure Maps and OSM Scout Server do work in Flatpak, except location is not known (Pure Maps). But they work better natively ...

rinigus 2020-03-05 21:00

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by coderus (Post 1565949)
animated stickers are lottie stuff, no idea if ffmeg is affect at all

for data i mean same what user can do with
Code:

flatpak uninstall --delete-data appname
but without uninstalling app? sometimes i screw app settings and want to start from scratch. reinstalling is an option, but easy way via flatpak runner can be simple solution.

If you want to remove app data, `rm` is your friend:

Code:

rm -rf ~/.var/app/FLATPAK_ID
and you should be good to go. Its still installed and should just start as new

coderus 2020-03-05 21:22

Re: Flatpak on Sailfish OS
 
seems angelfish is broken after update..

rinigus 2020-03-06 07:08

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by coderus (Post 1565954)
seems angelfish is broken after update..

As I don't see any breakage, you'd have to be more specific

BTW, I noticed that sometimes I have to remove QML and other caches on my device to get the latest version updates. For that, try

Code:

rm -rf ~/.var/app/org.kde.mobile.angelfish/cache
No idea why.

mousse04 2020-03-06 14:17

Re: Flatpak on Sailfish OS
 
Hi guys,

I've just followed the guideline to install flatpak and then angelfish, but when I launch angelfish it says Error code 139. Don't know if the error is the same reported by @Coderus. I'm on Xperia XA2

coderus 2020-03-06 16:05

Re: Flatpak on Sailfish OS
 
after another updaate it staarrted working again

was error:
Code:

[nemo@Sailfish ~]$ flatpak-runner org.kde.mobile.angelfish
Starting: org.kde.mobile.angelfish
[D] unknown:0 - Using Wayland-EGL
Wayland socket: ../../display/wayland-8
WAYLAND_DISPLAY="../../display/wayland-8" FLATPAK_MALIIT_CONTAINER_DBUS="unix:abstract=/tmp/dbus-3HchXuYvXl,guid=dce393649c42c21c80460a135e627490" flatpak run --env=QT_WAYLAND_FORCE_DPI=191 --filesystem=/system:ro --filesystem=/vendor:ro --filesystem=/odm:ro --filesystem=/plat_property_contexts:ro --filesystem=/nonplat_property_contexts: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
[C] unknown:0 - Failed to open database "/home/nemo/.var/app/org.kde.mobile.angelfish/data/KDE/angelfish/angelfish.sqlite"
terminate called after throwing an instance of 'std::runtime_error'
  what():  Failed to open database /home/nemo/.var/app/org.kde.mobile.angelfish/data/KDE/angelfish/angelfish.sqlite
[D] expression for onExit:59 - Skipping quit as it will hang the window. Proper exit is needed


rinigus 2020-03-06 17:14

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by mousse04 (Post 1565967)
Hi guys,

I've just followed the guideline to install flatpak and then angelfish, but when I launch angelfish it says Error code 139. Don't know if the error is the same reported by @Coderus. I'm on Xperia XA2

Unless you run unreleased SFOS version, as coderus does, XA2 is not ready yet. libhybris is too old

rinigus 2020-03-06 18:23

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by coderus (Post 1565969)
after another updaate it staarrted working again

was error:
Code:

[nemo@Sailfish ~]$ flatpak-runner org.kde.mobile.angelfish
Starting: org.kde.mobile.angelfish
[D] unknown:0 - Using Wayland-EGL
Wayland socket: ../../display/wayland-8
WAYLAND_DISPLAY="../../display/wayland-8" FLATPAK_MALIIT_CONTAINER_DBUS="unix:abstract=/tmp/dbus-3HchXuYvXl,guid=dce393649c42c21c80460a135e627490" flatpak run --env=QT_WAYLAND_FORCE_DPI=191 --filesystem=/system:ro --filesystem=/vendor:ro --filesystem=/odm:ro --filesystem=/plat_property_contexts:ro --filesystem=/nonplat_property_contexts: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
[C] unknown:0 - Failed to open database "/home/nemo/.var/app/org.kde.mobile.angelfish/data/KDE/angelfish/angelfish.sqlite"
terminate called after throwing an instance of 'std::runtime_error'
  what():  Failed to open database /home/nemo/.var/app/org.kde.mobile.angelfish/data/KDE/angelfish/angelfish.sqlite
[D] expression for onExit:59 - Skipping quit as it will hang the window. Proper exit is needed


Database folder creation issue was fixed last night, indeed.

balta 2020-03-06 19:29

Re: Flatpak on Sailfish OS
 
Would it be worth a try on the Jolla Tablet or do you now that it will not work, anyway? Do you have some x86 packages for this?

rinigus 2020-03-06 19:39

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by balta (Post 1565974)
Would it be worth a try on the Jolla Tablet or do you now that it will not work, anyway? Do you have some x86 packages for this?

While we have packages for Sailfish, there are no Flatpak packages for x86 32 bit with KDE 5.14. That's due to discontinuing of support for that platform.

Now, KDE 5.12 is available for i386. So, you could, if interested, build applications yourself. Just have to be ready to get hands dirty.

mousse04 2020-03-07 08:02

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1565972)
Unless you run unreleased SFOS version, as coderus does, XA2 is not ready yet. libhybris is too old

Thanks. When, us, human :), are we getting a newer version of libhybris? With the upcoming 3.3.0 update?

Thanks

Mathieu

coderus 2020-03-07 08:43

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by mousse04 (Post 1565985)
Thanks. When, us, human :), are we getting a newer version of libhybris? With the upcoming 3.3.0 update?

Thanks

Mathieu

in sfos 3.3 release

rinigus 2020-03-10 18:41

Re: Flatpak on Sailfish OS
 
The latest nightly of Angelfish brings it there (well one small cosmetic merge absent) where I wanted it to be. Now you can choose which navigation buttons are displayed in Settings. While the default is based on KDE requirements, its easy to make it into the bar that we are used to. In my case, I have: tabs, back, address, and reload buttons. Menu buttons are hidden.

To get into the main and context menus (left and right menus by default), all you have to do is to slide your finger along bottom border of the screen. Depending on direction, you will get either main or context menu. As, at least in my case, menus were mainly used to access back and reload buttons, I don't have much use for them if the buttons are out. Note that the menu buttons will appear in landscape mode as there is more screen space over there.

If you find issues, missing features, fill in bugs at https://invent.kde.org/kde/plasma-angelfish/issues (will have to register KDE account though). Except, be sure that its not related to Flatpak implementation at SFOS. For example, lack of support for <select> due to Wayland bugs.

coderus 2020-03-11 11:27

Re: Flatpak on Sailfish OS
 
https://github.com/sailfishos-flatpa.../pull/17/files

Fixed popups. Cant get position to show it properly, so displaying in the center of screen

rinigus 2020-03-11 13:07

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by coderus (Post 1566013)
https://github.com/sailfishos-flatpa.../pull/17/files

Fixed popups. Cant get position to show it properly, so displaying in the center of screen

Thank you very much! I will test and review tonight. As for centering, its probably a valid approach. From testing earlier of the browser on Fedora/Wayland, it looks to me that the <select> widgets are put at (0,0) coordinates in QtWebEngine. In this respect, assuming that the patch covers it as well, centering makes more sense.

coderus 2020-03-11 18:09

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1566016)
Thank you very much! I will test and review tonight. As for centering, its probably a valid approach. From testing earlier of the browser on Fedora/Wayland, it looks to me that the <select> widgets are put at (0,0) coordinates in QtWebEngine. In this respect, assuming that the patch covers it as well, centering makes more sense.

well, for example in telegram all notification popups are stacked on each other.. if any waylaand/compositor expert here :D

rinigus 2020-03-11 18:45

Re: Flatpak on Sailfish OS
 
@coderus: changes merged, thank you very much! It already improved <select> in HTML. As for overlapping notifications, cannot say much. I wonder whether we need to spend too much time on Wayland compositor, as surely Qt update is coming soon, right? :)

PS: I have no info regarding Qt update, don't get your hopes up. Feel free to read soon^{TM}

coderus 2020-03-11 19:24

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1566019)
@coderus: changes merged, thank you very much! It already improved <select> in HTML. As for overlapping notifications, cannot say much. I wonder whether we need to spend too much time on Wayland compositor, as surely Qt update is coming soon, right? :)

PS: I have no info regarding Qt update, don't get your hopes up. Feel free to read soon^{TM}

new qt isn't coming any soon. my best hopes in compiling new stuff in /opt

rinigus 2020-03-11 19:38

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by coderus (Post 1566020)
new qt isn't coming any soon. my best hopes in compiling new stuff in /opt

In this respect, its probably as good as sticking with Flatpak then. For /opt you would need the same Wayland compositor-in-compositor as Flatpak Runner. Except, Flatpak has few extra limitations, I guess (file save dialogs and such).

Yeah, I suspected that much as there is no visible activity in mer repos... Thanks for letting us know!

carlosgonz 2020-04-02 20:28

Re: Flatpak on Sailfish OS
 
SONY XPERIA X - SF-ROKUA


[nemo@Sailfish ~]$ flatpak install --user org.kde.mobile.angelfish
Looking for matches?
Usage: gpg-connect-agent [options] (-h for help)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
Usage: gpg-connect-agent [options] (-h for help)Usage: gpg-connect-agent [options] (-h for help)Required runtime for org.kde.mobile.angelfish/arm/master (runtime/org.kde.Platform/arm/5.14) found in remote flathub
Do you want to install it? [Y/n]: Y

org.kde.mobile.angelfish permissions:
ipc network pulseaudio wayland x11 dri file access [1] dbus access [2] tags [3]

[1] home, xdg-config/kdeglobals:ro
[2] com.canonical.AppMenu.Registrar, org.freedesktop.Notifications
[3] nightly

ID Branch Op Remote Download
1. [?] org.kde.Platform.Locale 5.14 i flathub 1.0 kB / 337.0?MB
2. [?] org.kde.Platform 5.14 i flathub 1.0 kB / 282.7?MB
3. [ ] org.kde.mobile.angelfish master i kdeapps < 47.2?MB

Warning: Failed to read commit 5aab5ef11ea869dbf035c24593164f1ce1865afec0d2940587 73697c043d11b1: No such metadata object c6dd096e6359f64131e4ed4d57439708834cfe46fe7cf87bee 55c7b223cd71d0.dirtree
Installing 2/3? ???????????????????? 100% 98 bytes/s 00:00error: Failed to install org.kde.Platform: While trying to checkout 369b3f9f6a8f78699502df53fe653562fbfde76a18dc373175 f2592b0a02c686 into /home/nemo/.local/share/flatpak/runtime/org.kde.Platform/arm/5.14/.369b3f9f6a8f78699502df53fe653562fbfde76a18dc37317 5f2592b0a02c686-P8RJI0: Opening content object a28c6d9f509aaaac286705a47cbc1f2842121d8f5dc3f6c472 6ae154d6bb0001: Couldn't find file object 'a28c6d9f509aaaac286705a47cbc1f2842121d8f5dc3f6c47 26ae154d6bb0001'

atlochowski 2020-04-02 21:01

Re: Flatpak on Sailfish OS
 
@carlosgonz

Code:

flatpak --user repair

carlosgonz 2020-04-02 21:09

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by atlochowski (Post 1566507)
@carlosgonz

Code:

flatpak --user repair

Yes Yes Yes Yes fixed. Big thanks at you.

Jedibeeftrix 2020-04-03 07:17

Re: Flatpak on Sailfish OS
 
Video says following features for SFOS 3.3 - GCC 8.3 and flatpak support. Smashing!

https://www.youtube.com/watch?v=cG95...ature=youtu.be

Does this also suggest that 3.3 has moved to QT 5.9.x?


All times are GMT. The time now is 12:11.

vBulletin® Version 3.8.8