I have a .sh script Call mainSc.sh which look like this :
#!/bin/bash
{
cd /home/myrepository
export LD_LIBRARY_PATH=/home/myrepository/build/src/
./myscript.sh | python mypythonscript.py
} || {
notify-send "it didn't work..."
}
And my problem is when I launch it from terminal (./mainSc.sh ) it work fine and when I try to launch it from the .desktop I created, it launch and work until ./myscript.sh and my python script does not work... I really don't understand why....
thanks a lot !