Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Make Qt terminal app executable and add it to favorites tab @ Ubuntu
Forum Update on Monday, May 27th 2025

Make Qt terminal app executable and add it to favorites tab @ Ubuntu

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 422 Views
  • 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.
  • J Offline
    J Offline
    JacobNovitsky
    wrote on last edited by JacobNovitsky
    #1

    Having application, which I need to execute from favorites tab @ Ubuntu
    how to should I proceed?

    C 1 Reply Last reply
    0
    • J JacobNovitsky

      Having application, which I need to execute from favorites tab @ Ubuntu
      how to should I proceed?

      C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      @JacobNovitsky You need to create a Desktop Entry File (e.g. app.desktop) and drop it into either ~/.local/share/applications for use by you only, or /usr/share/applications to make it available system-wide. Here's a rough example:

      [Desktop Entry]
      Comment=
      Exec=/opt/yourapp/yourapp
      GenericName=YourApp
      Icon=/opt/yourapp/yourapp.png
      Name=Your App Rulez
      NoDisplay=false
      Path=
      StartupNotify=true
      Terminal=false
      TerminalOptions=
      Type=Application
      
      J 1 Reply Last reply
      1
      • C ChrisW67

        @JacobNovitsky You need to create a Desktop Entry File (e.g. app.desktop) and drop it into either ~/.local/share/applications for use by you only, or /usr/share/applications to make it available system-wide. Here's a rough example:

        [Desktop Entry]
        Comment=
        Exec=/opt/yourapp/yourapp
        GenericName=YourApp
        Icon=/opt/yourapp/yourapp.png
        Name=Your App Rulez
        NoDisplay=false
        Path=
        StartupNotify=true
        Terminal=false
        TerminalOptions=
        Type=Application
        
        J Offline
        J Offline
        JacobNovitsky
        wrote on last edited by
        #3

        @ChrisW67 yes, I've tried that one

        script.sh

        #!/usr/bin/bash
        /home/supernova/Qt/Tools/QtCreator/bin/qtcreator /home/supernova/Desktop/MPU/MPU.pro

        shortcut.desktop

        [Desktop Entry]
        Type=Application
        Terminal=true
        Name=Click-Script
        Icon=utilities-terminal
        Exec=gnome-terminal -e "bash -c './script.sh;$SHELL'"
        Categories=System;Monitor;ConsoleOnly;
        Keywords=system;process;task

        Desktop file itself has right icon, but I don't know how to open it with right click. I've tried to set the desktop file to favorites using dconf-editor.

        'org.gnome.Terminal.desktop', 'shortcut.desktop']
        I've asked the same on ask ubuntu

        JonBJ C 2 Replies Last reply
        0
        • J JacobNovitsky

          @ChrisW67 yes, I've tried that one

          script.sh

          #!/usr/bin/bash
          /home/supernova/Qt/Tools/QtCreator/bin/qtcreator /home/supernova/Desktop/MPU/MPU.pro

          shortcut.desktop

          [Desktop Entry]
          Type=Application
          Terminal=true
          Name=Click-Script
          Icon=utilities-terminal
          Exec=gnome-terminal -e "bash -c './script.sh;$SHELL'"
          Categories=System;Monitor;ConsoleOnly;
          Keywords=system;process;task

          Desktop file itself has right icon, but I don't know how to open it with right click. I've tried to set the desktop file to favorites using dconf-editor.

          'org.gnome.Terminal.desktop', 'shortcut.desktop']
          I've asked the same on ask ubuntu

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @JacobNovitsky
          I would have expected that the Exec=... entry would mean you would get a right-click menu item for running it?

          1 Reply Last reply
          0
          • J JacobNovitsky

            @ChrisW67 yes, I've tried that one

            script.sh

            #!/usr/bin/bash
            /home/supernova/Qt/Tools/QtCreator/bin/qtcreator /home/supernova/Desktop/MPU/MPU.pro

            shortcut.desktop

            [Desktop Entry]
            Type=Application
            Terminal=true
            Name=Click-Script
            Icon=utilities-terminal
            Exec=gnome-terminal -e "bash -c './script.sh;$SHELL'"
            Categories=System;Monitor;ConsoleOnly;
            Keywords=system;process;task

            Desktop file itself has right icon, but I don't know how to open it with right click. I've tried to set the desktop file to favorites using dconf-editor.

            'org.gnome.Terminal.desktop', 'shortcut.desktop']
            I've asked the same on ask ubuntu

            C Offline
            C Offline
            ChrisW67
            wrote on last edited by
            #5

            @JacobNovitsky Right-click where exactly? The right-click menu is generally context sensitive and also populated with actions not applications.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved