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

    Launch Sublime Text from UT menu/dock

    Scheduled Pinned Locked Moved Libertine
    3 Posts 2 Posters 178 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.
      • H Offline
        hlbkv
        last edited by

        I've installed Sublime Text with Libertine, and while it works well enough when launched from the terminal i.e. libertine-container-manager exec -c subl, the desktop/menu launcher in Lomiri is broken.

        By default, sublime_text.desktop launches the executable directly:

        ...
        Exec=/opt/sublime_text/sublime_text %F
        ...
        

        instead of the launcher bash script /usr/bin/subl, but both work when launched from the terminal (both with libertine-container-manager exec ... and from a libertine shell) without any major issue. I've tried editing sublime_text.desktop to call subl, but to no avail.

        Any insight as to what could be causing this and how to workaround it?

        arubislanderA 1 Reply Last reply Reply Quote 0
        • arubislanderA Online
          arubislander @hlbkv
          last edited by

          @hlbkv

          There is an app in the Open Store, LogViewer, which allows easy access to the application logs. Checking the Sublime Text logs with this app might surface the reason for the failure to launch.

          πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
          Happily running Ubuntu Touch
          Google Pixel 3a (20.04 DEV)
          JingPad (24.04 preview)
          Meizu Pro 5 (16.04 DEV)

          H 1 Reply Last reply Reply Quote 0
          • H Offline
            hlbkv @arubislander
            last edited by

            @arubislander I've looked at the logs per your suggestion, but strangely enough the app does not list any log pertaining to Sublime Text (which I would expect to find under focal_sublime_*), and I don't find any reference to it in any of the lomiri-* logs.

            As an update to the initial question, lomiri-app-launch focal_sublime_0.0 reports Started: focal_sublime_0.0 with no error, but like with the desktop shortcut, nothing is launched.

            Also, occasionally just clicking the app shortcut will fully kill/power off the OS.

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