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

    Possible to open file directly by launcher?

    Scheduled Pinned Locked Moved Unsolved Support
    6 Posts 2 Posters 553 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.
      • U Offline
        uwahl
        last edited by

        Is it possible to open a pdf-file with docviewer directly with a launcher or a shell-script?
        Something like
        [Desktop Entry]
        Name=MyTimeTable
        Exec=aa-exec-click ubuntu-docviewer-app /home/phablet/path_toTimeTable.pdf
        Icon=/home/phablet/Documents/path_to/my_icon.png
        Terminal=false
        Type=Application
        X-Ubuntu-Touch=true

        Any help is very appreciated,
        Thanks in advance!

        KenedaK 1 Reply Last reply Reply Quote 0
        • KenedaK Offline
          Keneda @uwahl
          last edited by

          @uwahl Launcher Modular allows you to do that with a command shortcut on its "desktop".
          https://open-store.io/app/launchermodular.ubuntouchfr

          v0.1.8

          • Add custom icon (command, url, app)

          2015-2023 : Meizu MX4 ☠️⚰️✝️
          2023-2024 : Nexus 5 ☠️⚰️✝️
          2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
          🇲🇫🇬🇧

          U 1 Reply Last reply Reply Quote 0
          • U Offline
            uwahl @Keneda
            last edited by

            @keneda
            ...so I need the "commandline" opening my pdf-file at /home/phablet/path_to/my_file.pdf
            Like with atril in "common" Ubuntu:
            atril /home/phablet/path_to/my_file.pdf -p 14
            displaying page 14 in my_pdf-file
            How can I do this?

            KenedaK 1 Reply Last reply Reply Quote 0
            • KenedaK Offline
              Keneda @uwahl
              last edited by

              @uwahl said in Possible to open file directly by launcher?:

              How can I do this?

              I don't know, i'm real noob in comand line...

              2015-2023 : Meizu MX4 ☠️⚰️✝️
              2023-2024 : Nexus 5 ☠️⚰️✝️
              2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
              🇲🇫🇬🇧

              1 Reply Last reply Reply Quote 0
              • U Offline
                uwahl
                last edited by

                Any other suggestions?
                Is it possible to open a pdf file via terminal? Could be implemented into a shell-script...?
                Still hoping...

                1 Reply Last reply Reply Quote 0
                • U Offline
                  uwahl
                  last edited by uwahl

                  In terminal I can start "docviewer" app with the command:

                  ubuntu-app-launch com.ubuntu.docviewer_docviewer_2.3.567

                  but how can I add a path to my document in order to be opened directly by docviewer? In former versions this was possible.
                  Any suggestions?
                  Help is still appreciated...

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