UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    How to launch LibreOffice?

    Scheduled Pinned Locked Moved Libertine
    5 Posts 3 Posters 173 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • M Offline
        mango
        last edited by

        Anyone knows how to set the variables PATH, LD_LIBRARY_PATH to successfully launch libreoffice (or soffice) from the command line in terminal? libertine-launch libreoffice creates some issues.

        Seems that the packages libreoffice-java-common default-jre are required, but not installed by the meta packae libreoffice which seems to install libreoffice-core. The issue is that soffice and javaldx does not seem to find all libraries needed, including the java installation default-jre. Cannot open uno.ini file.

        Does one have to create any directories and files?

        It is assumed that whenever a desktop app is installed in libertine container noble that it can find all its dependencies and is able to work as expected. LibreOffice is probably the number one desktop application one would think about using with libertine.

        If anyone has a clue about a libreoffice-launcher that opens libreoffice it would be great to share it.

        gimp and inkscape both launch in libertine using the desktop mode. For reference, the software channel used is 24.04/daily (noble) on a Fairphone 4.

        1 Reply Last reply Reply Quote 0
        • K Offline
          kugiigi
          last edited by

          Since you're on Noble, you can use snap to install these apps. They work well(-ish) and runs on wayland. They won't have the onscreen keyboard though which libertine might have.

          1 Reply Last reply Reply Quote 1
          • M Offline
            mango
            last edited by mango

            EDIT: Although launching anything libreoffice-related from the Ubuntu Touch menu seems not to work, I managed to at least start LibreOffice Writer from command line in terminal.

            This was the way, maybe it helps someone else who is not a pro at libertine containers:

            1. Install Libertine Tweak Tool
            2. Set all options ON, especially the lirsh option.
            3. Install package libreoffice-writer in the default libertine container (called noble by default) by typing this in a re-launched terminal (to get the lirsh command):
              libertine-container-manager install-package -p libreoffice-writer
            4. Type in terminal: lirsh
            5. You will see something starting with (noble)... $
            6. Launch LibreOffice by typing in terminal libreoffice or soffice.

            Note that no java (default-jre) was needed, neither libreoffice-java-common. I guess lirsh does some wonders here and sets the paths inside the libertine container. If one knows what lirsh does, it could be used to fix the LibreOffice launcher(s) in the main Ubuntu Touch menu.

            At time of testing, clicking on menus File, Edit etc does not produce any visible menu. But it is possible to type some text create a PDF and save it in /tmp folder, which actually is located in the real /tmp folder outside the libertine container. LibreOffice makes Ubuntu Touch unstable and the device restarts Lomiri causing a closure of every app in desktop mode.

            P 1 Reply Last reply Reply Quote 0
            • P Online
              projectmoon @mango
              last edited by

              @mango Have you tried installing the Snap versions?

              1 Reply Last reply Reply Quote 0
              • M Offline
                mango
                last edited by

                I tried to enter command in the terminal: sudo snap install libreoffice. It installed. This version of LibreOffice seems to work better than the libertine version I described above. Some dialogs end up partially outside the monitor in desktop mode, but it is indeed usable.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post