Creating shortcut to Oracle SQL Developer on desktop












1















To start Oracle SQL Developer I have to write
cd /opt/sqldeveloper/
./sqldeveloper.sh



I tried to make a shortcut to the sqldeveloper.sh file on my desktop, but when I run the shortcut I only see the script in gedit. It doesnt run it.



How can I make the script run when I click my desktop shortcut?










share|improve this question























  • Welcome to askubuntu.SE! Please take the tour, have a look around, and read through the help center, in particular How do I ask a good question? and What topics can I ask about here?. - did you set the executable flag using 'chamod'?

    – Timothy Truckle
    Aug 21 '17 at 14:38
















1















To start Oracle SQL Developer I have to write
cd /opt/sqldeveloper/
./sqldeveloper.sh



I tried to make a shortcut to the sqldeveloper.sh file on my desktop, but when I run the shortcut I only see the script in gedit. It doesnt run it.



How can I make the script run when I click my desktop shortcut?










share|improve this question























  • Welcome to askubuntu.SE! Please take the tour, have a look around, and read through the help center, in particular How do I ask a good question? and What topics can I ask about here?. - did you set the executable flag using 'chamod'?

    – Timothy Truckle
    Aug 21 '17 at 14:38














1












1








1








To start Oracle SQL Developer I have to write
cd /opt/sqldeveloper/
./sqldeveloper.sh



I tried to make a shortcut to the sqldeveloper.sh file on my desktop, but when I run the shortcut I only see the script in gedit. It doesnt run it.



How can I make the script run when I click my desktop shortcut?










share|improve this question














To start Oracle SQL Developer I have to write
cd /opt/sqldeveloper/
./sqldeveloper.sh



I tried to make a shortcut to the sqldeveloper.sh file on my desktop, but when I run the shortcut I only see the script in gedit. It doesnt run it.



How can I make the script run when I click my desktop shortcut?







16.04






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Aug 21 '17 at 13:45









SoloSolo

3482717




3482717













  • Welcome to askubuntu.SE! Please take the tour, have a look around, and read through the help center, in particular How do I ask a good question? and What topics can I ask about here?. - did you set the executable flag using 'chamod'?

    – Timothy Truckle
    Aug 21 '17 at 14:38



















  • Welcome to askubuntu.SE! Please take the tour, have a look around, and read through the help center, in particular How do I ask a good question? and What topics can I ask about here?. - did you set the executable flag using 'chamod'?

    – Timothy Truckle
    Aug 21 '17 at 14:38

















Welcome to askubuntu.SE! Please take the tour, have a look around, and read through the help center, in particular How do I ask a good question? and What topics can I ask about here?. - did you set the executable flag using 'chamod'?

– Timothy Truckle
Aug 21 '17 at 14:38





Welcome to askubuntu.SE! Please take the tour, have a look around, and read through the help center, in particular How do I ask a good question? and What topics can I ask about here?. - did you set the executable flag using 'chamod'?

– Timothy Truckle
Aug 21 '17 at 14:38










1 Answer
1






active

oldest

votes


















2














So, my guess is that it's not set as an executable. Check it's permissions.



From the command line you can run the following to add execute permissions to the file:



chmod +x sqldeveloper.sh


Another method I'd recommend is creating a shortcut would be the following:



cd /usr/share/applications
sudo gedit ./sqldeveloper.desktop


This will open an empty file in Gedit.



In the file, add the following contents:



[Desktop Entry]
Name=SQL Developer
Comment=Oracle SQL Developer
GenericName=SQL Developer for Linux
Exec=/opt/sqldeveloper/sqldeveloper.sh &
Type=Application
Categories=Developer;


Save the file.



Now if you use the Search for SQL Developer in your app menu, you'll find SQL Developer and you can run it from there.



Now you can either add that as a favorite of yours or you can drag and drop it to your desktop.



To confirm, I just did this process myself while writing this up.



You can also reference this post for other ways to do what you're looking to do.



How can I create launchers on my desktop?






share|improve this answer























    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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    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%2f948347%2fcreating-shortcut-to-oracle-sql-developer-on-desktop%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    So, my guess is that it's not set as an executable. Check it's permissions.



    From the command line you can run the following to add execute permissions to the file:



    chmod +x sqldeveloper.sh


    Another method I'd recommend is creating a shortcut would be the following:



    cd /usr/share/applications
    sudo gedit ./sqldeveloper.desktop


    This will open an empty file in Gedit.



    In the file, add the following contents:



    [Desktop Entry]
    Name=SQL Developer
    Comment=Oracle SQL Developer
    GenericName=SQL Developer for Linux
    Exec=/opt/sqldeveloper/sqldeveloper.sh &
    Type=Application
    Categories=Developer;


    Save the file.



    Now if you use the Search for SQL Developer in your app menu, you'll find SQL Developer and you can run it from there.



    Now you can either add that as a favorite of yours or you can drag and drop it to your desktop.



    To confirm, I just did this process myself while writing this up.



    You can also reference this post for other ways to do what you're looking to do.



    How can I create launchers on my desktop?






    share|improve this answer




























      2














      So, my guess is that it's not set as an executable. Check it's permissions.



      From the command line you can run the following to add execute permissions to the file:



      chmod +x sqldeveloper.sh


      Another method I'd recommend is creating a shortcut would be the following:



      cd /usr/share/applications
      sudo gedit ./sqldeveloper.desktop


      This will open an empty file in Gedit.



      In the file, add the following contents:



      [Desktop Entry]
      Name=SQL Developer
      Comment=Oracle SQL Developer
      GenericName=SQL Developer for Linux
      Exec=/opt/sqldeveloper/sqldeveloper.sh &
      Type=Application
      Categories=Developer;


      Save the file.



      Now if you use the Search for SQL Developer in your app menu, you'll find SQL Developer and you can run it from there.



      Now you can either add that as a favorite of yours or you can drag and drop it to your desktop.



      To confirm, I just did this process myself while writing this up.



      You can also reference this post for other ways to do what you're looking to do.



      How can I create launchers on my desktop?






      share|improve this answer


























        2












        2








        2







        So, my guess is that it's not set as an executable. Check it's permissions.



        From the command line you can run the following to add execute permissions to the file:



        chmod +x sqldeveloper.sh


        Another method I'd recommend is creating a shortcut would be the following:



        cd /usr/share/applications
        sudo gedit ./sqldeveloper.desktop


        This will open an empty file in Gedit.



        In the file, add the following contents:



        [Desktop Entry]
        Name=SQL Developer
        Comment=Oracle SQL Developer
        GenericName=SQL Developer for Linux
        Exec=/opt/sqldeveloper/sqldeveloper.sh &
        Type=Application
        Categories=Developer;


        Save the file.



        Now if you use the Search for SQL Developer in your app menu, you'll find SQL Developer and you can run it from there.



        Now you can either add that as a favorite of yours or you can drag and drop it to your desktop.



        To confirm, I just did this process myself while writing this up.



        You can also reference this post for other ways to do what you're looking to do.



        How can I create launchers on my desktop?






        share|improve this answer













        So, my guess is that it's not set as an executable. Check it's permissions.



        From the command line you can run the following to add execute permissions to the file:



        chmod +x sqldeveloper.sh


        Another method I'd recommend is creating a shortcut would be the following:



        cd /usr/share/applications
        sudo gedit ./sqldeveloper.desktop


        This will open an empty file in Gedit.



        In the file, add the following contents:



        [Desktop Entry]
        Name=SQL Developer
        Comment=Oracle SQL Developer
        GenericName=SQL Developer for Linux
        Exec=/opt/sqldeveloper/sqldeveloper.sh &
        Type=Application
        Categories=Developer;


        Save the file.



        Now if you use the Search for SQL Developer in your app menu, you'll find SQL Developer and you can run it from there.



        Now you can either add that as a favorite of yours or you can drag and drop it to your desktop.



        To confirm, I just did this process myself while writing this up.



        You can also reference this post for other ways to do what you're looking to do.



        How can I create launchers on my desktop?







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 22 '17 at 18:55









        OdinsonOdinson

        965




        965






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f948347%2fcreating-shortcut-to-oracle-sql-developer-on-desktop%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

            is 'sed' thread safe

            How to make a Squid Proxy server?