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

    Howto: making arbitrary "Legacy" applications available from the application menu.

    Scheduled Pinned Locked Moved Support
    1 Posts 1 Posters 662 Views 2 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.
    • D Offline
      Dave
      last edited by Dave

      Just to document some findings, in case somebody is looking for the same answer: This is how I am using and "integrating" normal Ubuntu and other 3rd-party applications into the launcher:

      Creating a libertine image, as documented here.
      Example:

      libertine-container-manager create -i legacy -n "Legacy"
      libertine-container-manager install-package -i legacy -p gnome-terminal
      libertine-container-manager install-package -i legacy -p openjdk-8-jre
      

      Now from the OpenStore install package "Desktop Apps". Enable the "Desktop Apps" scope in the launcher. Now swiping left on the Launcher should bring up the "Desktop Apps" scope. After running the commands above it lists just two items: "OpenJDK Java 8 Policy Tool" and "Terminal" . To add other custom launchers (for example to launch some manually installed Java GUI application), you can add more items to the Desktop Apps by creating files inside the libertine container at /usr/share/applications/*.desktop.

      Example:

      libertine-container-manager install-package -i legacy -p joe
      libertine-container-manager install-package -i legacy -p vim
      libertine-launch -i legacy  /bin/bash
      cp /usr/share/applictions/terminal.desktop /usr/share/applictions/myapp.desktop
      joe /usr/share/applications/myapp.desktop
      

      For example to launch a java application installed in /home/phablet/.local/share/libertine-container/user-data/legacy/myapp.jar , edit myapp.desktop and change the line

      Exec=/usr/bin/java -jar /home/phablet/myapp.jar
      

      (Note how the container's directory /home/phablet corresponds to the absolute path /home/phablet/.local/share/libertine-container/user-data/legacy/myapp.jar when accessed outside the container)

      Dave

      1 Reply Last reply Reply Quote 3

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • First post
        Last post