![]() |
Re: Flatpak on Sailfish OS
I too have had some issues installing Flatpak support on my xperia X running 3.3.
At the completion of installing both angelfish and telegram-desktop my device immediately rebooted. Angelfish runs, though with a little lag, so I assume that completed successfully. I haven't managed to start telegram though. I too have no desktop icon for angelfish or telegram following installation. Not sure what other information I can provide to assist. Thanks very much . |
Re: Flatpak on Sailfish OS
Just want to report that I got flatpak support and Angelfish up and running on my Xperia X, with no problem at all. :D
Thanks, @rinigus! |
Re: Flatpak on Sailfish OS
These reports are rather confusing. @eson, thanks for telling that it worked - this makes me to dig deeper.
For users with reboots, missing icons. Please provide output of the following commands. Run those via ssh in PC, so you could paste the output and not make screenshots. Code:
flatpak list --user Looks like your issues are reproducible, so I presume output of one is sufficient. Others, please check if you have the same as the reported one, when we get there. As for gdk_... , I don't know and can look into it when OBS 3.3 is up |
Re: Flatpak on Sailfish OS
in russian sfos telegram chat i've seen users ran into issues with flatpaks by issuing flatpak command as root user.
|
Re: Flatpak on Sailfish OS
Hi Rinigus,
Thanks for all the development and thanks for looking into this. Following your list of commands I end up with the following: Code:
,--- This is all using 3.3.0.14 SFOS on Xperia X. For what is worth the native email app is also incredibly laggy after update, so maybe something deeper is wrong with my phone. Have to look at that seperately. Thanks again for your help, Justin. |
Re: Flatpak on Sailfish OS
That looks like all is installed correctly. I suggest to uninstall angelfish and telegram. After that, run
flatpak repair --user and install Angelfish only. It should not reboot, btw. Would that help? |
Re: Flatpak on Sailfish OS
Hi Rinigus,
Thanks for your help. I started following your instructions, I started by uninstalling angelfish, and the Xperia X rebooted itself. Here is the terminal: Code:
[nemo@Sailfish ~]$ flatpak uninstall --user angelfish I shall keep going? Thanks, |
Re: Flatpak on Sailfish OS
Uninstall of telegram resulted in the same behaviour.
|
Re: Flatpak on Sailfish OS
Try still to uninstall and then repair before installing again. Reboot sounds as a bug of SFOS or flatpak. But let's see where you get
|
Re: Flatpak on Sailfish OS
I issued the uninstall command for both angelfish and telegram as I noted above. Both resulted in a restart.
On following the repair and reinstall of Angelfish I found the following: Code:
[nemo@Sailfish ~]$ flatpak repair --user The device has not suffered from reboots at any other stage in it's life. There is still no icon, and still just "Default settings" in Flatpak Runner. |
Re: Flatpak on Sailfish OS
I should of added that Angelfish launches and runs.
|
Re: Flatpak on Sailfish OS
Last post for the evening:
After several reboots and issueing flatpak uninstall commands I eventually got angelfish and telegram uninstalled. I then repaired. And then reinstalled angelfish. My device then rebooted. On completion, Angelfish now has an icon, and now shows up in flatpak runner, and opens and runs. Code:
[nemo@Sailfish ~]$ flatpak list --user Rinigus, thanks for all your help tonight. |
Re: Flatpak on Sailfish OS
It is worrisome that the device reboots. It sounds like installation is interrupted and something triggers reboot. But great that you managed to make it work.
Now, we do have setuid application installed - flatpak-bwrap . It doesn't have to be setuid while you install apps. So, if someone who can trigger reboots by installation or removal could strip setuid from /usr/libexec/flatpak-bwrap and try again, that would be helpful. If you get reboots even then, its bug of the OS (or RAM pressure). Just don't forget to make setuid again, otherwise flatpak will not work. |
Re: Flatpak on Sailfish OS
I am happy to try this, though I have not been able to work out how to strip setuid out of flatpak-bwrap. I thought it might be editable in VIM. Doesn’t look like that is true though. Can anyone give further instruction?
Thanks, |
Re: Flatpak on Sailfish OS
Hi rinigus!
I have two questions about angelfish: 1) Copy/Paste into angelfish doesn't work, right? 2) I would like to use angelfish like default browser, but it doesn't work that well: I can open an url with angelfish but it doesn't start in that url Thanks for your work! |
Re: Flatpak on Sailfish OS
juz: you need to use chmod
- to remove setuid: devel-su chmod 755 /usr/libexec/flatpak-bwrap - to set it back devel-su chmod 4755 /usr/libexec/flatpak-bwrap carmenfdezb: 1. copy and paste work if you want to paste sailfish into angelfish. this is done by selecting the field where you want to paste for editing and pasting via keyboard 2. copy and paste works from angelfish to angelfish. for that, select text, copy it, go to the editing of some field and press paste button appeating next to it. 3. copy and paste from angelfish to sailfish does not work. that will require some wizard interested in it and implementing some kind of copy/paste buffer handling on flatpak/wayland side of flatpak runner and, easier part probably, syncing it with sfos keyboard. 4. url handling works for the start only. but, its not hooked into mime types and, to be more reasonable, we have to implement proper single app starting support in angelfish and flatpak-runner. probably will be done, but don't hold your breath. I'll try to remember to open single app support and mime handling issue at angelfish repo. after that is implemented, will look into flatpak-runner part. feel free to ping me in a week regarding it. |
Re: Flatpak on Sailfish OS
Quote:
I didn't know that 2) works, I was using paste option from keyboard :confused: Maybe the most important point for copy/paste text feature is 3) |
Re: Flatpak on Sailfish OS
Quote:
I didn't know that 2) works, I was using paste option from keyboard :confused: Maybe the most important point for copy/paste text feature is 3) and it would be really nice that 4) feature will work some day. Thanks for all your answers!! |
Re: Flatpak on Sailfish OS
Quote:
Maybe the most important point for copy/paste text feature is 3) and it would be really nice that 4) feature will work some day. Thanks for all your answers!! |
Re: Flatpak on Sailfish OS
I have opened translation project at https://www.transifex.com/rinigus/flatpak-runner/ . All as usual: languages have to be requested and then translation done. After that, I'll be able to pull it into the code.
|
Re: Flatpak on Sailfish OS
Hi Rinigus,
Stripping setuid certainly seems to have worked. No reboots on installation. Install completes, and angelfish shows up in flatpak-runner, as does the angelfish desktop icon. Every flatpak install (or uninstall) command issued the following warning between 1 and 3 times: Code:
bwrap: Can’t mount devpts on /newroot/dev/pts: Operation not permitted On a side note, telegram doesn’t start. The GUI window reports “Application finished with exit code 134” and the terminal looks like this: Code:
Last login: Tue Apr 7 13:27:43 2020 from 172.20.10.1 Thanks again for all your help, |
Re: Flatpak on Sailfish OS
juz: just to be clear - do you still need setuid to run Angelfish? for me it fails to run without setuid.
Thanks for testing. I hope it will be fixed by recompiling against SFOS 3.3, but time will tell. As for Telegram, maybe coderus can help out. I don't use it myself. |
Re: Flatpak on Sailfish OS
Hi Rinigus,
I hadn't tried running angelfish without restoring setuid. However I have just ran the following: Code:
devel-su chmod 455 /usr/libexec/flatpak-bwrap Code:
flatpak-runner org.kde.mobile.angelfish I can provide more info if required, thanks again, |
Re: Flatpak on Sailfish OS
juz: you mistyped QT_QPA_PLATFORM env value with unwanted = at the end (for telegram)
|
Re: Flatpak on Sailfish OS
Quote:
coderus: good catch! |
Re: Flatpak on Sailfish OS
Hi Coderus,
I had seen that extra = in the terminal output and couldn’t understand it as it was not shown in the flatpak runner GUI. However, I had typed the whole item on the name line and nothing on the value line! Now I understand how the layout works. Upon entering the correct name and value all works. Thanks for taking a look and for your feedback. Hi Rinigus, I wrote the previous post on my phone and that was a typo. I have just checked my terminal and it was 755 I had written. Sorry for the typo. Thanks for all the work and help getting my installation set up. |
Re: Flatpak on Sailfish OS
Hi everyone,
just stopping by to say thanks to all involved for making this happen! Running Angelfish on i4293 and 3.3.0.14 Rokua. Feels really good to have an up to date browser for once. Telegram Desktop has a few hickups but then there’s the native Depecher or Telegra’me. What other KDE apps might be worth a try? |
Re: Flatpak on Sailfish OS
Quote:
|
Re: Flatpak on Sailfish OS
Quote:
Observations compared Sony X vs XA2: Anglefish runs obviously faster on XA2 compared to X. X is somehow laggy and scrolling isn't that smooth as on XA2. Therefor I wonder if h/w acceleration (OpenGL ES) is missing with the wayland compositor and how it can be enabled if possible? Other than that great work and kudos to Rinigus for making this possible :) :) :) Cheers, Nek PS:Even if juddery I quite like Anglefish as an updated browser compared to stock Firefox 45. |
Re: Flatpak on Sailfish OS
Quote:
For that, you have to check what are debug vars for hybris on X (they may have changed between X and XA2). For me, its HYBRIS_LINKER_DEBUG=1 HYBRIS_LD_DEBUG=1 So, for example: HYBRIS_LINKER_DEBUG=1 HYBRIS_LD_DEBUG=1 flatpak-runner This is for SFOS native. and then run flatpak-runner --env=HYBRIS_LINKER_DEBUG=1 --env=HYBRIS_LD_DEBUG=1 org.kde.mobile.angelfish this is for Flatpak. Then we can compare and add missing libs into .local/share/flatpak/extension/org.freedesktop.Platform.GL.host/arm/1.4 |
Re: Flatpak on Sailfish OS
Hi all,
Just installed Flatpack and AngelFish without any troubles on XA2 with 3.3.0.14 SFOS release. Display is just to big, and I have to check which DPI a or scale setting I should use with my XA2. Thanks a lot for your job! |
Re: Flatpak on Sailfish OS
Quote:
Code:
[nemo@Sailfish ~]$ flatpak-runner --env=HYBRIS_LINKER_DEBUG=1 --env=HYBRIS_LD_DEBUG=1 org.kde.mobile.angelfish |
Re: Flatpak on Sailfish OS
I will also need an output of
HYBRIS_LINKER_DEBUG=1 HYBRIS_LD_DEBUG=1 flatpak-runner for comparison |
Re: Flatpak on Sailfish OS
Hi Rinigus,
sorry RTFM I guess :) Here is the output of the former command: Code:
[nemo@Sailfish ~]$ HYBRIS_LINKER_DEBUG=1 HYBRIS_LD_DEBUG=1 flatpak-runner I added a print(fname) and got "/home/nemo/.local/share/flatpak/exports/share/applications/org.kde.mobile.angelfish.desktop". I guess the desktop file is not the correct configuration file that should be read for AngelFish. Launching runner from application grid though works fine. |
Re: Flatpak on Sailfish OS
SFOS doesn't appear in official support distribution :
https://flatpak.org/setup/ Also, Is there a chance that slack app, hosted in Flathub works? https://flathub.org/apps/details/com.slack.Slack |
Re: Flatpak on Sailfish OS
Quote:
Re Slack: slack does not provide ARM version for Linux. See https://github.com/flathub/com.slack...Slack.json#L81 . So, you can ask them for such version, but don't have too much hope. It doesn't work from Angelfish either as its considering that its Android device that contacts it and starts asking to install the app. |
Re: Flatpak on Sailfish OS
|
Re: Flatpak on Sailfish OS
Quote:
Quote:
|
Re: Flatpak on Sailfish OS
Hi and thanks for all the (angel)fish.
Angelfish runs like expected. Installing and uninstalling flatpaks works, BUT every time I do one of these actions my phone crashes and reboots: Code:
journalctl -fa Code:
Apr 09 13:34:43 SailX polkitd(authority=local)[852]: Registered Authentication Agent for unix-process:11676:360590 (system bus name :1.123 [flatpak uninstall --user org.kde.okular], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) Should I do a clean install of flatpak(-runner)? If yes, how? |
Re: Flatpak on Sailfish OS
Quote:
|
All times are GMT. The time now is 17:07. |
vBulletin® Version 3.8.8