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)

defactofactotum 2020-04-14 11:40

Re: Flatpak on Sailfish OS
 
Thanks a million rinigus, you're right, I put the env variable all on one line without looking closely. Opens up fine now, haven't had time to check it out yet.
Also thanks to coderus for help.

rinigus 2020-04-14 11:46

Re: Flatpak on Sailfish OS
 
@coderus, I wonder if we have to alter Telegram instructions to explain that the variable is entered using 2 boxes... and I though its all clear in GUI :(

chris_bavaria 2020-04-14 11:49

Re: Flatpak on Sailfish OS
 
Hi, thanks for your good work! Flatpak and Angelfish works on XA2 with 3.3.0.14.
Is there a solution to install Nuvola on Flatpak?
https://www.yourtechshow.com/2019/06....html?spref=tw
The amazon-music app did not work without a google-account on SFOS, but on Linux-mint amazon-music works with Nuvola on Flatpak.

rinigus 2020-04-14 12:01

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by chris_bavaria (Post 1566833)
Hi, thanks for your good work! Flatpak and Angelfish works on XA2 with 3.3.0.14.
Is there a solution to install Nuvola on Flatpak?
https://www.yourtechshow.com/2019/06....html?spref=tw
The amazon-music app did not work without a google-account on SFOS, but on Linux-mint amazon-music works with Nuvola on Flatpak.


Try to follow their instructions, within reason (you have flatpak installed already). Usually these apps are not available in ARM. But you have to try yourself - I cannot test every app out there

coderus 2020-04-14 12:05

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1566832)
@coderus, I wonder if we have to alter Telegram instructions to explain that the variable is entered using 2 boxes... and I though its all clear in GUI :(

i think it's better to make proper UI changes ;)

magic cucumber 2020-04-14 12:13

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by coderus (Post 1566835)
i think it's better to make proper UI changes ;)

Well, second one field is for QT_QPA_PLATFORM=wayland . What to put into first one "Name" field?

rinigus 2020-04-14 12:16

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by coderus (Post 1566835)
i think it's better to make proper UI changes ;)

PR is always welcome :)

PS: Post above: Q. E. D.

PPS: @magic cucumber: Name: QT_QPA_PLATFORM ; Value: wayland

defactofactotum 2020-04-14 12:22

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by magic cucumber (Post 1566836)
Well, second one field is for QT_QPA_PLATFORM=wayland . What to put into first one "Name" field?

Hi magic cucumber, as I found myself, the first line is for QT_QPA_PLATFORM
and the second line is the value: wayland.
This was not so obvious to me, I'm just a user. HTH

coderus 2020-04-14 12:27

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1566837)
PR is always welcome :)

as soon as i sort out my daily sfos work :D

magic cucumber 2020-04-14 12:33

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by defactofactotum (Post 1566838)
This was not so obvious to me, I'm just a user. HTH

The same. Now it looks OK :)

Nekron 2020-04-14 13:54

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1566740)
@Nekron: I checked the loaded libs and they seem to be the same for Flatpak and SFOS native. So, can't tell on the basis of that and its not why Xperia X is slower than XA2

try to run

flatpak-runner org.kde.mobile.angelfish chrome://gpu

(until corresponding issue is fixed, have to start new angelfish for it). I have HW accelerated canvas, flash and few others (not all). compare X and XA2 and see if there is some major difference.

Seems like H/W accelleration is enabled on both devices. However playing around with settings I found out that sometimes scale and DPI combinations might pretend that it's scrolling faster. Maybe scaling needs more CPU power to magnify canvas and hence the lag. Other than that I re-enabled GPU compositing (which is turned off by default flatpak-runner) and gfx glitches are not too bad, but brings a slighty faster scrolling.

Talking about settings. It there a reason why home permission must be granted to Angelfish? I removed it with

Code:

flatpak override --user --nofilesystem=home
and as far as I can see it still works well for me as I don't need to upload files from my home directory (but having private keys and other stuff protected from sandboxed browser is a major security win compared to stock browser :)).

rinigus 2020-04-14 18:37

Re: Flatpak on Sailfish OS
 
Flatpak Runner with Finnish is now released as well (only change in updated version).

Re GPU composing: glitches on my phone were some, not too many. But I preferred to release without them.

Re scaling/DPI: there seem to be some kind of cut-off DPI setting at which you have a feeling that WebEngine is going `ooh, its so high, we better blow up all the characters!!!` mode. So, its quite possible that there are some sweet spots in its settings.

Re home folder: its for downloads as well, those go to ~/Downloads. But feel free to disable.

defactofactotum 2020-04-15 09:15

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by coderus (Post 1566835)
i think it's better to make proper UI changes ;)

Hi rinigus and coderus, I think the app UI is fine. Maybe it would help to change the readme. Because it presents the 'variable' as one block of text non-cognoscenti like me will just copy it. Suggest: add environment variable: name = QT_QPA_PLATFORM with value = wayland.
Thanks a lot for your work.

inte 2020-04-15 16:38

Re: Flatpak on Sailfish OS
 
First of all: Great work. Thank you very much. It's the first time I can use my Gemini to surf the web using angelfish:-)
However: I have a mayor issue. I own a German Gemini with German keyboard layout and I have yet to figure out how to change the keyset of the Gemini hardware keyboard to German layout?
While genuine SfOS-Apps work with the German layout, the device switches to English layout in angelfish.
Thank you very much!

rinigus 2020-04-15 16:50

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by inte (Post 1566852)
First of all: Great work. Thank you very much. It's the first time I can use my Gemini to surf the web using angelfish:-)
However: I have a mayor issue. I own a German Gemini with German keyboard layout and I have yet to figure out how to change the keyset of the Gemini hardware keyboard to German layout?
While genuine SfOS-Apps work with the German layout, the device switches to English layout in angelfish.
Thank you very much!

Interesting. Does it go for onscreen or physical keyboard? Or both? Is physical keyboard set somehow specially in the system? Don't know much about physical keyboards and Maliit interaction, I probably missed something in its server/client interaction.

@defactofactotum: telegram section updated accordingly. Let's see if these errors will stop now.

inte 2020-04-15 17:25

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1566854)
Interesting. Does it go for onscreen or physical keyboard? Or both? Is physical keyboard set somehow specially in the system? Don't know much about physical keyboards and Maliit interaction, I probably missed something in its server/client interaction.

The physical keyboard.
The onscreen keyboard doesn't show up at all.

inte 2020-04-15 17:41

Re: Flatpak on Sailfish OS
 
Without having read the entire thread:
I guess cut'n paste between sfos and linux-apps not working is a known issue, or is that Gemini specific since it uses key-combinations (ctrl-x/ctrl-v)?
Are there any useable apps for sailfish devices other than angelfish at all?
I tried kontact which has missing dependencies (e.g. akonadi and mysql) and konversation, which doesn't recognize any input.
Thanks

Caluna 2020-04-15 19:56

Re: Flatpak on Sailfish OS
 
Hi,
I cannot install Angelfish:

Quote:

Error: While trying to checkout cca5fd2e8ba48ec0c76c7b98c77da58d158db8b821c2a1b22b 845f06e9d15bae into /home/nemo/.local/share/flatpak/runtime/org.kde.Platform/arm/5.14/.cca5fd2e8ba48ec0c76c7b98c77da58d158db8b821c2a1b22 b845f06e9d15bae-34SAJ0: Opening content object 13eb2432a9c8fa4932db13609b474f52056c228d39154dd149 01601a4debc69a: Couldn't find file object '13eb2432a9c8fa4932db13609b474f52056c228d39154dd14 901601a4debc69a'
error: Failed to install org.kde.Platform: While trying to checkout cca5fd2e8ba48ec0c76c7b98c77da58d158db8b821c2a1b22b 845f06e9d15bae into /home/nemo/.local/share/flatpak/runtime/org.kde.Platform/arm/5.14/.cca5fd2e8ba48ec0c76c7b98c77da58d158db8b821c2a1b22 b845f06e9d15bae-34SAJ0: Opening content object 13eb2432a9c8fa4932db13609b474f52056c228d39154dd149 01601a4debc69a: Couldn't find file object '13eb2432a9c8fa4932db13609b474f52056c228d39154dd14 901601a4debc69a'
Any ideas?

atlochowski 2020-04-15 21:13

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by Caluna (Post 1566859)
Hi,
I cannot install Angelfish:


Any ideas?

HTML Code:

flatpak --user repair

Caluna 2020-04-16 05:52

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by atlochowski (Post 1566864)
HTML Code:

flatpak --user repair

That worked. Thank you!

rinigus 2020-04-16 06:41

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by inte (Post 1566855)
The physical keyboard.
The onscreen keyboard doesn't show up at all.

On your device, does the onscreen keyboard work at all in SFOS? As for interaction between physical keyboard and Maliit, I hope somebody will chip in and explain how the layout is setup. Note that in Flatpak solution, we have maliit plugin partially running inside Flatpak and is installed via extension. I presume you did install the extension.

As for suitable apps, it gets asked frequently. I am not going to reply to it as this does not scale - I cannot repeat my replies every time. Instead, I expect that the new users would take time and read few pages back in history. It could be even ten pages, but only that way we can be sure that the developers don't repeat their replies and spend time on it instead of working on the projects.

meemorph 2020-04-16 06:46

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1566854)
Interesting. Does it go for onscreen or physical keyboard? Or both? Is physical keyboard set somehow specially in the system? Don't know much about physical keyboards and Maliit interaction, I probably missed something in its server/client interaction.
...

+@inte
The physical keyboard from geminipda is a little bit odd. It uses X11 drivers. Look here:
Code:

/usr/share/X11/xkb/symbols/planet_vndr/gemini
Also the Fn key combinations are not working. Same problem with chroot from elros based on xWayland Victory. I never got it working, but I am not an expert. I copied keyboard config from geminipda-sailfishos and/or geminipda-debian to chroot but had 'illegal keycode' errors from the keymap compiler 'xkbcomp' after doing it. Sometimes the gemini keyboard was working, after removing all key shortcuts from the windows manger, but it never was stable. Needs an expert, I think.
Is it possible to use the gemini key mappings in flatpak?

meemorph 2020-04-16 07:28

Re: Flatpak on Sailfish OS
 
I read more in this thread and found: flatpak run --command=sh org.kde.mobile.angelfish
And there is is a 'xkbcomp' but 'ls /usr/share/X11/xkb/symbols/' shows that there is (of course) no 'planet_vdnr' folder. But that gives me the hope it is doable some time.

inte 2020-04-16 07:45

Re: Flatpak on Sailfish OS
 
I have never tried the Debian release for the gemini, but maybe it includes a matching keymap which could just be copied over to the flatpak install?
@ringius Yes thank you of course you are right. I'll read further. On my way to work now, though. 24 shift...

eson 2020-04-16 09:22

Re: Flatpak on Sailfish OS
 
I found this chat app on flathub and looking at it on desktop I thought that it might work for Sailfish, but I keep getting this error message that I do not fully understand.

Please help!


Code:

[nemo@Sailfish ~]$ flatpak install --user chat.delta.desktop
Looking for matches?
Usage: gpg-connect-agent [options] (-h for help)Usage: gpg-connect-agent [options] (-h for help)error: No remote refs found similar to ?chat.delta.desktop?


coderus 2020-04-16 09:30

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by eson (Post 1566875)
I found this chat app on flathub and looking at it on desktop I thought that it might work for Sailfish, but I keep getting this error message that I do not fully understand.

Please help!

no arm build fo this app?

rinigus 2020-04-16 09:35

Re: Flatpak on Sailfish OS
 
no arm: see https://github.com/flathub/chat.delt...r/flathub.json

looks like no wayland: https://github.com/flathub/chat.delt...esktop.yml#L11

meemorph 2020-04-16 12:56

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by inte (Post 1566870)
I have never tried the Debian release for the gemini, but maybe it includes a matching keymap which could just be copied over to the flatpak install?

the keymap is on sailfishos aswell.

rinigus 2020-04-17 06:03

Re: Flatpak on Sailfish OS
 
Heads up: there is something odd with the latest Flatpak platform and/or Angelfish update. Looks like navigation bar settings are reset and I have to figure out why. Don't update unless you want to set the preferences on every Angelfish start

rinigus 2020-04-17 06:06

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by inte (Post 1566870)
I have never tried the Debian release for the gemini, but maybe it includes a matching keymap which could just be copied over to the flatpak install?

You'll have to look up how to do that. Not sure its trivial as it goes against Flatpak stride to provide standard platforms, but maybe possible. Maybe better way would be to find how to make keyboard keymap to load from some alternative location via some env variable.

Kopekenscheich 2020-04-17 09:01

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1566904)
Heads up: there is something odd with the latest Flatpak platform and/or Angelfish update. Looks like navigation bar settings are reset and I have to figure out why. Don't update unless you want to set the preferences on every Angelfish start

Noticed that, too.

rinigus 2020-04-18 07:18

Re: Flatpak on Sailfish OS
 
Regarding hardware info support, new issue has been opened at https://github.com/sailfishos-flatpak/main/issues/13 . Those who are interested in its support are encouraged to share info there and figure out how to make HW keyboard work there.

rinigus 2020-04-20 17:07

Re: Flatpak on Sailfish OS
 
New Flatpak Runner was released yesterday with the commit from @coderus improving environment variables insertion.

Bugfix of Angelfish was just merged and it should restore proper saving and loading of navigation bar settings. I presume it will be out as a part of the next build of Angelfish tomorrow.

meemorph 2020-04-21 10:39

Re: Flatpak on Sailfish OS
 
May be we can configure physical keyboards if we could run 'org.kde.ktouch'?

It is in the repos, it is installable but it does not work.

Code:

$ flatpak-runner org.kde.ktouch
Starting: org.kde.ktouch
[D] unknown:0 - Using Wayland-EGL
library "libwlparser.so" not found
Wayland socket: ../../display/wayland-2
WAYLAND_DISPLAY="../../display/wayland-2" FLATPAK_MALIIT_CONTAINER_DBUS="unix:abstract=/tmp/dbus-PIzIoYWeDi,guid=8513064887b1f97753cb5c1c5e9ecbc6" flatpak run --env=QT_WAYLAND_FORCE_DPI=280 --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.ktouch
[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
library "libwlparser.so" not found
[D] unknown:0 - qCoreApp Application(0xffbecf0c)
[W] KLocalizedStringPrivate::substituteSimple:764 - "0 instead of 1 arguments to message {Do you really want t...} supplied before conversion."
[W] unknown:0 - Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
[W] unknown:0 - Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
[W] unknown:0 - Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
[W] unknown:204 - qrc:/ktouch/qml/keyboard/KeyItem.qml:204: TypeError: Cannot read property 'height' of null
[W] unknown:63 - qrc:/ktouch/qml/keyboard/KeyLabel.qml:63: TypeError: Cannot read property 'height' of null
[W] unknown:63 - qrc:/ktouch/qml/keyboard/KeyLabel.qml:63: TypeError: Cannot read property 'height' of null
[W] unknown:63 - qrc:/ktouch/qml/keyboard/KeyLabel.qml:63: TypeError: Cannot read property 'height' of null
[W] unknown:63 - qrc:/ktouch/qml/keyboard/KeyLabel.qml:63: TypeError: Cannot read property 'height' of null
[W] unknown:237 - qrc:/ktouch/qml/keyboard/KeyItem.qml:237: TypeError: Cannot read property 'width' of null
[W] unknown:235 - qrc:/ktouch/qml/keyboard/KeyItem.qml:235: TypeError: Cannot read property 'width' of null
[W] unknown:0 - Can't create subsurface, not supported by the compositor.
[W] unknown:0 - "wl-shell" is a deprecated shell extension, prefer using "xdg-shell-v6" or "xdg-shell" if supported by the compositor by setting the environment variable QT_WAYLAND_SHELL_INTEGRATION
[W] unknown:0 - Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
[W] unknown:0 - Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
[W] unknown:0 - Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
[W] unknown:0 - Wayland does not support QWindow::requestActivate()


rinigus 2020-04-21 11:13

Re: Flatpak on Sailfish OS
 
Note that flatpak apps run in separate environments. If you configure one of them., it will not magically transfer into another one.

LouisDK 2020-04-21 16:52

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by mattiviljanen (Post 1566795)
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.

I didn't touch /usr/libecex/flatpak-bwrap. I tried removing setuid and reenabling it to no luck. Also upgraded flatpak-runner but didn't help either.

Any other ideas?

rinigus 2020-04-21 18:53

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by LouisDK (Post 1567035)
I didn't touch /usr/libecex/flatpak-bwrap. I tried removing setuid and reenabling it to no luck. Also upgraded flatpak-runner but didn't help either.

Any other ideas?

http://talk.maemo.org/showpost.php?p...&postcount=268
http://talk.maemo.org/showpost.php?p...&postcount=269

are those relevant (had to scroll several pages back to see what the problem was)

Nekron 2020-04-23 11:26

Re: Flatpak on Sailfish OS
 
@rinigus: FYI: There is CVE-2020-5291 which affects setuid'ed bubblewrap containers. Flatpak has included the bugfix in release 1.6.3.

I'm not sure how this affects Angelfish and how this can be exploited, but just in case to let you know :)

rinigus 2020-04-25 20:45

Re: Flatpak on Sailfish OS
 
I will look into Flatpak update, just could not make it so far due to lack of time. But will try to do it soon.

rinigus 2020-04-27 21:01

Re: Flatpak on Sailfish OS
 
Flatpak 1.6.3 is out, not tested much so far. Those who wish to test can update, others should wait and see if there will be any complaints.

@Nekron - thank you very much for heads up!


All times are GMT. The time now is 17:03.

vBulletin® Version 3.8.8