How do I create an application launcher without coding?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
6
down vote

favorite
6












I want to create a launcher for an application that I just installed but whatever I searched was about creating a file with .desktop extension, but I need another way to make this without any coding or typing.



I found Arronax but it doesn't work for me. that's not launching the desired application. Arronax can make .desktop file visually by selecting needed parameters. Somebody suggest me something please.







share|improve this question






















  • You mean an application currently without a launcher, right?
    – Jacob Vlijm
    Feb 6 '16 at 11:35










  • a sort of, there is a .sh file when i do sh ./app.sh it's start the application and it has a icon in launcher when it's open but i cant keep it in launcher.
    – Ehsan Aghaei
    Feb 6 '16 at 12:28










  • You probably need to tell a bit more about the application, which is it? A tkinter application by any chance?
    – Jacob Vlijm
    Feb 6 '16 at 12:30










  • Hi Ehsan, did you read my question above?
    – Jacob Vlijm
    Feb 8 '16 at 9:46










  • hi, the application is Jetbrains PhpStorm. I can't pin this to the launcher when it's open.
    – Ehsan Aghaei
    Feb 8 '16 at 12:23














up vote
6
down vote

favorite
6












I want to create a launcher for an application that I just installed but whatever I searched was about creating a file with .desktop extension, but I need another way to make this without any coding or typing.



I found Arronax but it doesn't work for me. that's not launching the desired application. Arronax can make .desktop file visually by selecting needed parameters. Somebody suggest me something please.







share|improve this question






















  • You mean an application currently without a launcher, right?
    – Jacob Vlijm
    Feb 6 '16 at 11:35










  • a sort of, there is a .sh file when i do sh ./app.sh it's start the application and it has a icon in launcher when it's open but i cant keep it in launcher.
    – Ehsan Aghaei
    Feb 6 '16 at 12:28










  • You probably need to tell a bit more about the application, which is it? A tkinter application by any chance?
    – Jacob Vlijm
    Feb 6 '16 at 12:30










  • Hi Ehsan, did you read my question above?
    – Jacob Vlijm
    Feb 8 '16 at 9:46










  • hi, the application is Jetbrains PhpStorm. I can't pin this to the launcher when it's open.
    – Ehsan Aghaei
    Feb 8 '16 at 12:23












up vote
6
down vote

favorite
6









up vote
6
down vote

favorite
6






6





I want to create a launcher for an application that I just installed but whatever I searched was about creating a file with .desktop extension, but I need another way to make this without any coding or typing.



I found Arronax but it doesn't work for me. that's not launching the desired application. Arronax can make .desktop file visually by selecting needed parameters. Somebody suggest me something please.







share|improve this question














I want to create a launcher for an application that I just installed but whatever I searched was about creating a file with .desktop extension, but I need another way to make this without any coding or typing.



I found Arronax but it doesn't work for me. that's not launching the desired application. Arronax can make .desktop file visually by selecting needed parameters. Somebody suggest me something please.









share|improve this question













share|improve this question




share|improve this question








edited Feb 6 '16 at 7:09









muru

129k19272462




129k19272462










asked Feb 6 '16 at 6:45









Ehsan Aghaei

31114




31114











  • You mean an application currently without a launcher, right?
    – Jacob Vlijm
    Feb 6 '16 at 11:35










  • a sort of, there is a .sh file when i do sh ./app.sh it's start the application and it has a icon in launcher when it's open but i cant keep it in launcher.
    – Ehsan Aghaei
    Feb 6 '16 at 12:28










  • You probably need to tell a bit more about the application, which is it? A tkinter application by any chance?
    – Jacob Vlijm
    Feb 6 '16 at 12:30










  • Hi Ehsan, did you read my question above?
    – Jacob Vlijm
    Feb 8 '16 at 9:46










  • hi, the application is Jetbrains PhpStorm. I can't pin this to the launcher when it's open.
    – Ehsan Aghaei
    Feb 8 '16 at 12:23
















  • You mean an application currently without a launcher, right?
    – Jacob Vlijm
    Feb 6 '16 at 11:35










  • a sort of, there is a .sh file when i do sh ./app.sh it's start the application and it has a icon in launcher when it's open but i cant keep it in launcher.
    – Ehsan Aghaei
    Feb 6 '16 at 12:28










  • You probably need to tell a bit more about the application, which is it? A tkinter application by any chance?
    – Jacob Vlijm
    Feb 6 '16 at 12:30










  • Hi Ehsan, did you read my question above?
    – Jacob Vlijm
    Feb 8 '16 at 9:46










  • hi, the application is Jetbrains PhpStorm. I can't pin this to the launcher when it's open.
    – Ehsan Aghaei
    Feb 8 '16 at 12:23















You mean an application currently without a launcher, right?
– Jacob Vlijm
Feb 6 '16 at 11:35




You mean an application currently without a launcher, right?
– Jacob Vlijm
Feb 6 '16 at 11:35












a sort of, there is a .sh file when i do sh ./app.sh it's start the application and it has a icon in launcher when it's open but i cant keep it in launcher.
– Ehsan Aghaei
Feb 6 '16 at 12:28




a sort of, there is a .sh file when i do sh ./app.sh it's start the application and it has a icon in launcher when it's open but i cant keep it in launcher.
– Ehsan Aghaei
Feb 6 '16 at 12:28












You probably need to tell a bit more about the application, which is it? A tkinter application by any chance?
– Jacob Vlijm
Feb 6 '16 at 12:30




You probably need to tell a bit more about the application, which is it? A tkinter application by any chance?
– Jacob Vlijm
Feb 6 '16 at 12:30












Hi Ehsan, did you read my question above?
– Jacob Vlijm
Feb 8 '16 at 9:46




Hi Ehsan, did you read my question above?
– Jacob Vlijm
Feb 8 '16 at 9:46












hi, the application is Jetbrains PhpStorm. I can't pin this to the launcher when it's open.
– Ehsan Aghaei
Feb 8 '16 at 12:23




hi, the application is Jetbrains PhpStorm. I can't pin this to the launcher when it's open.
– Ehsan Aghaei
Feb 8 '16 at 12:23










2 Answers
2






active

oldest

votes

















up vote
9
down vote













Outside sources



What you need is gnome-desktop-item-edit program. Basically it does the same thing - it creates a .desktop file. Why ? Because launchers are .desktop files, just pinned to launcher. Nothing more than that. Windows shortcuts are .lnk files too by they way, they just don't show up as files with .lnk extension, but if you ever mounted a Windows hard drive - you'll know.



The gnome-desktop-item-edit command is still available if you install gnome-panel or gnome-tweak-tool.



Once you have it, you can use this command in terminal:



gnome-desktop-item-edit --create-new ~/Desktop


Homebrew



I've actually written a small script for that purpose before (because why not ? ). You can copy the code, save to file, and run whenever you want it. That simple !



#!/bin/bash

FORM=$(zenity --forms --title="Simple shortcut maker" --text="Create new .desktop file"
--add-entry="Program Name"
--add-entry="Command or path to file"
--add-entry="Terminal app(true/false)"
--add-entry="Icon (path)")

[ $? == 0 ] || exit 1

awk -F'|' -v home="$HOME" '
FILE = home"/Desktop/"$1".desktop"
print "[Desktop Entry]" >> FILE
print "Type=Application" >> FILE
print "Name="$1 >> FILE
print "Exec="$2 >> FILE
print "Terminal="$3 >> FILE
if ($4 !~ /^[ ]*$/)
print "Icon="$4 >> FILE ;
system("chmod 755 " FILE);

' <<< "$FORM"


And that's how it looks:



enter image description here



You will have .desktop file in your Desktop folder, which you can later pin to launcher.



Note: the content about the gnome-desktop-item-edit is provided by fossfreedom's original answer, please upvote his good work !






share|improve this answer





























    up vote
    7
    down vote













    Assuming your application is a GUI application, currently without a launcher, there is a simple way to let Unity create the launcher for you in ~/.local/share/applications, after which you can move it to anywhere you like.



    1. Run the (GUI) application a single time from command line.


    2. In the Launcher, right-click on the icon that appears, running the application, choose "lock to launcher"



      enter image description here



    3. Navigate to ~/.local/share/applications, there you'll find your new launcher, created by Unity. Even the arguments you ran it with are included in the launcher. Since it is not executable yet, it will be iconless.


    4. Make it executable (right-click in nautilus > permissions (tab), now you can move it to anywhere you like and double- click to start the application.

    N.B. The name of a launcher which is not executable (yet) might differ from the name you saw in the Unity Launcher. If you doubt, simply sort the files in ~/.local/share/applications by modification date, the latest edited file is your newly created launcher.






    share|improve this answer






















    • I like this answer. not even need to write a single line of command. The only thing I need to do is to rename the launch.
      – Arst
      Feb 15 '17 at 0:59










    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f730317%2fhow-do-i-create-an-application-launcher-without-coding%23new-answer', 'question_page');

    );

    Post as a guest






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    9
    down vote













    Outside sources



    What you need is gnome-desktop-item-edit program. Basically it does the same thing - it creates a .desktop file. Why ? Because launchers are .desktop files, just pinned to launcher. Nothing more than that. Windows shortcuts are .lnk files too by they way, they just don't show up as files with .lnk extension, but if you ever mounted a Windows hard drive - you'll know.



    The gnome-desktop-item-edit command is still available if you install gnome-panel or gnome-tweak-tool.



    Once you have it, you can use this command in terminal:



    gnome-desktop-item-edit --create-new ~/Desktop


    Homebrew



    I've actually written a small script for that purpose before (because why not ? ). You can copy the code, save to file, and run whenever you want it. That simple !



    #!/bin/bash

    FORM=$(zenity --forms --title="Simple shortcut maker" --text="Create new .desktop file"
    --add-entry="Program Name"
    --add-entry="Command or path to file"
    --add-entry="Terminal app(true/false)"
    --add-entry="Icon (path)")

    [ $? == 0 ] || exit 1

    awk -F'|' -v home="$HOME" '
    FILE = home"/Desktop/"$1".desktop"
    print "[Desktop Entry]" >> FILE
    print "Type=Application" >> FILE
    print "Name="$1 >> FILE
    print "Exec="$2 >> FILE
    print "Terminal="$3 >> FILE
    if ($4 !~ /^[ ]*$/)
    print "Icon="$4 >> FILE ;
    system("chmod 755 " FILE);

    ' <<< "$FORM"


    And that's how it looks:



    enter image description here



    You will have .desktop file in your Desktop folder, which you can later pin to launcher.



    Note: the content about the gnome-desktop-item-edit is provided by fossfreedom's original answer, please upvote his good work !






    share|improve this answer


























      up vote
      9
      down vote













      Outside sources



      What you need is gnome-desktop-item-edit program. Basically it does the same thing - it creates a .desktop file. Why ? Because launchers are .desktop files, just pinned to launcher. Nothing more than that. Windows shortcuts are .lnk files too by they way, they just don't show up as files with .lnk extension, but if you ever mounted a Windows hard drive - you'll know.



      The gnome-desktop-item-edit command is still available if you install gnome-panel or gnome-tweak-tool.



      Once you have it, you can use this command in terminal:



      gnome-desktop-item-edit --create-new ~/Desktop


      Homebrew



      I've actually written a small script for that purpose before (because why not ? ). You can copy the code, save to file, and run whenever you want it. That simple !



      #!/bin/bash

      FORM=$(zenity --forms --title="Simple shortcut maker" --text="Create new .desktop file"
      --add-entry="Program Name"
      --add-entry="Command or path to file"
      --add-entry="Terminal app(true/false)"
      --add-entry="Icon (path)")

      [ $? == 0 ] || exit 1

      awk -F'|' -v home="$HOME" '
      FILE = home"/Desktop/"$1".desktop"
      print "[Desktop Entry]" >> FILE
      print "Type=Application" >> FILE
      print "Name="$1 >> FILE
      print "Exec="$2 >> FILE
      print "Terminal="$3 >> FILE
      if ($4 !~ /^[ ]*$/)
      print "Icon="$4 >> FILE ;
      system("chmod 755 " FILE);

      ' <<< "$FORM"


      And that's how it looks:



      enter image description here



      You will have .desktop file in your Desktop folder, which you can later pin to launcher.



      Note: the content about the gnome-desktop-item-edit is provided by fossfreedom's original answer, please upvote his good work !






      share|improve this answer
























        up vote
        9
        down vote










        up vote
        9
        down vote









        Outside sources



        What you need is gnome-desktop-item-edit program. Basically it does the same thing - it creates a .desktop file. Why ? Because launchers are .desktop files, just pinned to launcher. Nothing more than that. Windows shortcuts are .lnk files too by they way, they just don't show up as files with .lnk extension, but if you ever mounted a Windows hard drive - you'll know.



        The gnome-desktop-item-edit command is still available if you install gnome-panel or gnome-tweak-tool.



        Once you have it, you can use this command in terminal:



        gnome-desktop-item-edit --create-new ~/Desktop


        Homebrew



        I've actually written a small script for that purpose before (because why not ? ). You can copy the code, save to file, and run whenever you want it. That simple !



        #!/bin/bash

        FORM=$(zenity --forms --title="Simple shortcut maker" --text="Create new .desktop file"
        --add-entry="Program Name"
        --add-entry="Command or path to file"
        --add-entry="Terminal app(true/false)"
        --add-entry="Icon (path)")

        [ $? == 0 ] || exit 1

        awk -F'|' -v home="$HOME" '
        FILE = home"/Desktop/"$1".desktop"
        print "[Desktop Entry]" >> FILE
        print "Type=Application" >> FILE
        print "Name="$1 >> FILE
        print "Exec="$2 >> FILE
        print "Terminal="$3 >> FILE
        if ($4 !~ /^[ ]*$/)
        print "Icon="$4 >> FILE ;
        system("chmod 755 " FILE);

        ' <<< "$FORM"


        And that's how it looks:



        enter image description here



        You will have .desktop file in your Desktop folder, which you can later pin to launcher.



        Note: the content about the gnome-desktop-item-edit is provided by fossfreedom's original answer, please upvote his good work !






        share|improve this answer














        Outside sources



        What you need is gnome-desktop-item-edit program. Basically it does the same thing - it creates a .desktop file. Why ? Because launchers are .desktop files, just pinned to launcher. Nothing more than that. Windows shortcuts are .lnk files too by they way, they just don't show up as files with .lnk extension, but if you ever mounted a Windows hard drive - you'll know.



        The gnome-desktop-item-edit command is still available if you install gnome-panel or gnome-tweak-tool.



        Once you have it, you can use this command in terminal:



        gnome-desktop-item-edit --create-new ~/Desktop


        Homebrew



        I've actually written a small script for that purpose before (because why not ? ). You can copy the code, save to file, and run whenever you want it. That simple !



        #!/bin/bash

        FORM=$(zenity --forms --title="Simple shortcut maker" --text="Create new .desktop file"
        --add-entry="Program Name"
        --add-entry="Command or path to file"
        --add-entry="Terminal app(true/false)"
        --add-entry="Icon (path)")

        [ $? == 0 ] || exit 1

        awk -F'|' -v home="$HOME" '
        FILE = home"/Desktop/"$1".desktop"
        print "[Desktop Entry]" >> FILE
        print "Type=Application" >> FILE
        print "Name="$1 >> FILE
        print "Exec="$2 >> FILE
        print "Terminal="$3 >> FILE
        if ($4 !~ /^[ ]*$/)
        print "Icon="$4 >> FILE ;
        system("chmod 755 " FILE);

        ' <<< "$FORM"


        And that's how it looks:



        enter image description here



        You will have .desktop file in your Desktop folder, which you can later pin to launcher.



        Note: the content about the gnome-desktop-item-edit is provided by fossfreedom's original answer, please upvote his good work !







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Apr 13 '17 at 12:23









        Community♦

        1




        1










        answered Feb 6 '16 at 7:04









        Sergiy Kolodyazhnyy

        64.9k9129282




        64.9k9129282






















            up vote
            7
            down vote













            Assuming your application is a GUI application, currently without a launcher, there is a simple way to let Unity create the launcher for you in ~/.local/share/applications, after which you can move it to anywhere you like.



            1. Run the (GUI) application a single time from command line.


            2. In the Launcher, right-click on the icon that appears, running the application, choose "lock to launcher"



              enter image description here



            3. Navigate to ~/.local/share/applications, there you'll find your new launcher, created by Unity. Even the arguments you ran it with are included in the launcher. Since it is not executable yet, it will be iconless.


            4. Make it executable (right-click in nautilus > permissions (tab), now you can move it to anywhere you like and double- click to start the application.

            N.B. The name of a launcher which is not executable (yet) might differ from the name you saw in the Unity Launcher. If you doubt, simply sort the files in ~/.local/share/applications by modification date, the latest edited file is your newly created launcher.






            share|improve this answer






















            • I like this answer. not even need to write a single line of command. The only thing I need to do is to rename the launch.
              – Arst
              Feb 15 '17 at 0:59














            up vote
            7
            down vote













            Assuming your application is a GUI application, currently without a launcher, there is a simple way to let Unity create the launcher for you in ~/.local/share/applications, after which you can move it to anywhere you like.



            1. Run the (GUI) application a single time from command line.


            2. In the Launcher, right-click on the icon that appears, running the application, choose "lock to launcher"



              enter image description here



            3. Navigate to ~/.local/share/applications, there you'll find your new launcher, created by Unity. Even the arguments you ran it with are included in the launcher. Since it is not executable yet, it will be iconless.


            4. Make it executable (right-click in nautilus > permissions (tab), now you can move it to anywhere you like and double- click to start the application.

            N.B. The name of a launcher which is not executable (yet) might differ from the name you saw in the Unity Launcher. If you doubt, simply sort the files in ~/.local/share/applications by modification date, the latest edited file is your newly created launcher.






            share|improve this answer






















            • I like this answer. not even need to write a single line of command. The only thing I need to do is to rename the launch.
              – Arst
              Feb 15 '17 at 0:59












            up vote
            7
            down vote










            up vote
            7
            down vote









            Assuming your application is a GUI application, currently without a launcher, there is a simple way to let Unity create the launcher for you in ~/.local/share/applications, after which you can move it to anywhere you like.



            1. Run the (GUI) application a single time from command line.


            2. In the Launcher, right-click on the icon that appears, running the application, choose "lock to launcher"



              enter image description here



            3. Navigate to ~/.local/share/applications, there you'll find your new launcher, created by Unity. Even the arguments you ran it with are included in the launcher. Since it is not executable yet, it will be iconless.


            4. Make it executable (right-click in nautilus > permissions (tab), now you can move it to anywhere you like and double- click to start the application.

            N.B. The name of a launcher which is not executable (yet) might differ from the name you saw in the Unity Launcher. If you doubt, simply sort the files in ~/.local/share/applications by modification date, the latest edited file is your newly created launcher.






            share|improve this answer














            Assuming your application is a GUI application, currently without a launcher, there is a simple way to let Unity create the launcher for you in ~/.local/share/applications, after which you can move it to anywhere you like.



            1. Run the (GUI) application a single time from command line.


            2. In the Launcher, right-click on the icon that appears, running the application, choose "lock to launcher"



              enter image description here



            3. Navigate to ~/.local/share/applications, there you'll find your new launcher, created by Unity. Even the arguments you ran it with are included in the launcher. Since it is not executable yet, it will be iconless.


            4. Make it executable (right-click in nautilus > permissions (tab), now you can move it to anywhere you like and double- click to start the application.

            N.B. The name of a launcher which is not executable (yet) might differ from the name you saw in the Unity Launcher. If you doubt, simply sort the files in ~/.local/share/applications by modification date, the latest edited file is your newly created launcher.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Apr 13 '17 at 12:24









            Community♦

            1




            1










            answered Feb 6 '16 at 8:45









            Jacob Vlijm

            61.8k9120214




            61.8k9120214











            • I like this answer. not even need to write a single line of command. The only thing I need to do is to rename the launch.
              – Arst
              Feb 15 '17 at 0:59
















            • I like this answer. not even need to write a single line of command. The only thing I need to do is to rename the launch.
              – Arst
              Feb 15 '17 at 0:59















            I like this answer. not even need to write a single line of command. The only thing I need to do is to rename the launch.
            – Arst
            Feb 15 '17 at 0:59




            I like this answer. not even need to write a single line of command. The only thing I need to do is to rename the launch.
            – Arst
            Feb 15 '17 at 0:59

















             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f730317%2fhow-do-i-create-an-application-launcher-without-coding%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491