Results 1 to 5 of 5

Thread: bash file not executed when clicked

  1. #1
    Join Date
    Jun 2008
    Location
    Canada
    Posts
    436

    Default bash file not executed when clicked

    Hi

    I use kde, since last update when i double click a sh file, it's not executed.

    I try to run .sh of netbeans


    I done

    righ click on the file / properties / files types option

    It display me theses software


    kate
    LibreOffice Writer
    Okular

    On another ocmputer, same three software, but when I double click on sh file of netbeans, netbeans it's started

    Don't want to start software in the konsole in the background, should be able to start directly the software

    Any idea?
    www.laboiteaprog.com

  2. #2
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,375
    Blog Entries
    1

    Default Re: bash file not executed when clicked

    Quote Originally Posted by collinm View Post
    Hi

    I use kde, since last update when i double click a sh file, it's not executed.
    Check the file permissions eg....
    Code:
    ls -l /path/to/foo.sh
    Post the output that you get for your netbeans file here. You can use the chmod command to make the script executable (assuming you are the owner) if necessary
    Code:
    chmod +x /path/to/foo.sh
    This may be helpful to you...
    http://beginnerlinuxtutorial.com/lin...file-in-linux/
    Last edited by deano_ferrari; 23-Mar-2019 at 19:39.
    openSUSE Leap 15.0; KDE Plasma 5

  3. #3
    Join Date
    Jun 2008
    Location
    Canada
    Posts
    436

    Default Re: bash file not executed when clicked

    Quote Originally Posted by deano_ferrari View Post
    Check the file permissions eg....
    Code:
    ls -l /path/to/foo.sh
    Post the output that you get for your netbeans file here. You can use the chmod command to make the script executable (assuming you are the owner) if necessary
    Code:
    chmod +x /path/to/foo.sh
    This may be helpful to you...
    http://beginnerlinuxtutorial.com/lin...file-in-linux/
    8 -rwxr-xr-x 1 collinm users 5689 17 déc 04:32 Development/ide/netbeans10/bin/netbeans
    www.laboiteaprog.com

  4. #4
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,375
    Blog Entries
    1

    Default Re: bash file not executed when clicked

    Returning to your first opening post statement...


    I done

    righ click on the file / properties / files types option

    It display me theses software


    kate
    LibreOffice Writer
    Okular
    Right-click on the file, and select 'Open With' > 'Other...'. Configure it to open with '/bin/sh' and 'Run in terminal'. You can enable the 'Remember application association for all files...' if you like. This will result in a custom .desktop file in ~/.local/share/applications/ so that when you next double-click and open this file it will launch a shell to run in.
    openSUSE Leap 15.0; KDE Plasma 5

  5. #5
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,126

    Default Re: bash file not executed when clicked

    Quote Originally Posted by collinm View Post
    8 -rwxr-xr-x 1 collinm users 5689 17 déc 04:32 Development/ide/netbeans10/bin/netbeans
    First a general remark. Please do copy/paste complete, that is inclsuing the line with the prompt and the command and also the line with the prompt at the end. Only so others can see what you did to get that output. Also copy/paste that between CODE tags. You get CODE tags by clicking on the button with # in the tool bar of the post editor.

    Then
    Code:
    Development/ide/netbeans10/bin/netbeans
    This filename has noo suffix of .sh. So there is no way how KDE can associate this file with want you to do with that.
    And it is contrary to what you say in your first post here:
    [QUOTE][I try to run .sh of netbeans/QUOTE]
    Henk van Velden

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •