Results 1 to 3 of 3

Thread: Nautilus script doesn't honor PATH value

  1. #1
    Join Date
    Mar 2010
    Location
    Zipangu
    Beans
    27
    Distro
    Ubuntu 16.04 Xenial Xerus

    Angry Nautilus script doesn't honor PATH value

    On our Ubuntu 9.10 which has Nautilus 2.28.1 file manager, we have a line on a Nautilus script:

    java -jar $filename 2>naut-err.txt

    We have set the PATH variable value for our jdk/bin path in the $HOME/.bashrc file and we can run the above command line from gnome-terminal on the same directory where the $filename file does reside. However, the Nautilus script emits error saying 'java not found' for the above line.

    What could be the cause and the cure for the weird error?

    On Fedora systems(Fedora 10 and 12), the same script does run just normally. Why Ubuntu does have the problem?

  2. #2
    Join Date
    Feb 2007
    Beans
    4,045
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Nautilus script doesn't honor PATH value

    .bashrc is only sourced for interactive non-login shells. Set PATH in .profile instead, then log out and back in to have it sourced.

  3. #3
    Join Date
    Mar 2010
    Location
    Zipangu
    Beans
    27
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Nautilus script doesn't honor PATH value

    Quote Originally Posted by geirha View Post
    .bashrc is only sourced for interactive non-login shells. Set PATH in .profile instead, then log out and back in to have it sourced.
    Problem solved all too soon thanks to your precise answer. Fedora/Red Hat doesn't hava .profile file. The Debian, for which I am a sheer newbie, is a different culture.

Tags for this Thread

Bookmarks

Posting Permissions

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