launch .sh from desktop half work-

I have a .sh script Call which look like this :

#!/bin/bash { cd /home/myrepository export LD_LIBRARY_PATH=/home/myrepository/build/src/ ./ | python } || { notify-send "it didn't work..." } 

And my problem is when I launch it from terminal (./ ) it work fine and when I try to launch it from the .desktop I created, it launch and work until ./ and my python script does not work... I really don't understand why....

thanks a lot !


This behavior can be explaned easily if you are dealing with the standard input in (waiting for user input, for example). As no terminal is attached, your script terminates, just like cat would do, for instance.

Category: command line Time: 2016-07-29 Views: 3

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C), All Rights Reserved.

processed in 0.110 (s). 12 q(s)