Struggle to install LibreOffice on the PinePhone
#18
(05-30-2022, 07:55 AM)Peter Gamma Wrote: Thanks for your answer, Wibble. I am looking for the easiest way to start LibreOffice on the PinePhone, even if the easiest way is a workaround.

You said, on mobian, you also managed to run LibreOffice, which is great.

You said:

«If I ssh in with X forwarding I can start libreoffice with everything appearing on my desktop, so it can run».

How can I ssh in with X forwarding on mobian to start libreoffice so it can run LibreOffice on my PinePhone?

Use the -X switch when you ssh into the pinephone from the desktop:
ssh -X mobian@pinephone_name_or_address

This will forward the display to the desktop for applications using X but not those using native Wayland. If you want to launch it with the display on the phone, and to keep running after you disconnect from ssh, you don't want the -X. Instead in the ssh session you would run:
DISPLAY=:0 OOO_FORCE_DESKTOP=gnome-wayland libreoffice &

You can also modify the .desktop files for whichever libreoffice component you want to set the environment. It's probably best to copy them from /usr/share/applications/libreoffice-whatever.desktop to ~/.local/applications/ and edit the copies rather than editing the system ones. When editing you need to find the Exec lines and add the necessary environment at the start, so for example:
Exec=libreoffice --writer %U
becomes:
Exec=env OOO_FORCE_DESKTOP=gnome-wayland libreoffice --writer %U

When testing this I accidentally hit the icon for one that I hadn't edited, and it still launched properly on the phone, so it seems an update has fixed this issue, and that libreoffice now 'Just Works' on mobian. I'll leave the above for reference in case it breaks again.
  Reply


Messages In This Thread
RE: Struggle to install LibreOffice on the PinePhone - by wibble - 06-02-2022, 06:40 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Using Signal on PinePhone in mid-2023? dante404 46 13,559 04-30-2024, 07:50 PM
Last Post: dragonhospital
  Slarm64 on PinePhone [Unofficial Slackware ARM - 64 bit] acid andy 38 25,347 04-23-2024, 10:29 AM
Last Post: donchurch
  PinePhone app development WhiteHexagon 15 4,082 04-23-2024, 05:19 AM
Last Post: Jonnyc
Wink PINEPHONE not booting Touchwood 2 497 02-23-2024, 07:27 AM
Last Post: Touchwood
  Slack on PinePhone Adam Seline 5 5,460 12-20-2023, 07:20 AM
Last Post: nickolas
  Which word processor to choose for the Pinephone? Peter Gamma 8 2,086 11-23-2023, 01:06 AM
Last Post: Peter Gamma
  openSUSE for Pinephone Alefnode 75 102,787 11-17-2023, 08:37 AM
Last Post: Uturn
  Genode- Sculpt OS for the PinePhone (non Linux) Surehand53 1 1,018 11-04-2023, 07:23 PM
Last Post: tllim
  Abiword as a office mobile word processor for the Pinephone? Peter Gamma 11 2,365 10-24-2023, 08:57 AM
Last Post: Peter Gamma
  What File Manager Options Are There For The Pinephone? pinephoneuser22 7 2,490 10-18-2023, 08:37 AM
Last Post: luppivega

Forum Jump:


Users browsing this thread: 2 Guest(s)