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
  Movuan distribution for PinePhone merom 5 1,248 07-27-2025, 05:01 PM
Last Post: merom
  baremetal via Zig on PinePhone - JumpDrive help please WhiteHexagon 1 356 07-07-2025, 10:33 AM
Last Post: WhiteHexagon
  Latest firmware for PinePhone modem! Subsentient 105 177,723 02-02-2025, 08:47 PM
Last Post: bacydentir85
  Slarm64 on PinePhone [Unofficial Slackware ARM - 64 bit] acid andy 40 44,125 12-28-2024, 12:19 AM
Last Post: mara
  Office applications for the Pinephone Peter Gamma 2 1,513 09-05-2024, 09:22 AM
Last Post: Peter Gamma
  Why does Pine64 sabotage office on the Pinephone? Peter Gamma 5 2,579 07-04-2024, 07:34 AM
Last Post: Kevin Kofler
  Distro for writers, k & m, LibreOffice, PostmarketOS? Peter Gamma 15 15,682 06-28-2024, 11:51 AM
Last Post: Peter Gamma
  Which word processor to choose for the Pinephone? Peter Gamma 16 9,975 06-22-2024, 07:28 AM
Last Post: Peter Gamma
  Samba share on the Pinephone? Peter Gamma 0 1,192 06-16-2024, 10:26 PM
Last Post: Peter Gamma
  Possible Free Backup Carrier for PinePhone PineFone 0 1,130 06-13-2024, 03:45 PM
Last Post: PineFone

Forum Jump:


Users browsing this thread: 1 Guest(s)