file - Get KDE to run a bash script -


I have a bash script that takes the filename as a argument, it works very well from the command line when I right-click a file on the KDE and select "Open", then point it to my script, it did not work. What am i doing wrong

It is possible that your script depends on the environment variable which is about terminal login session , But in the genome, you can check "Open with Terminal" to ensure that the program has been started from a new terminal session (from the same environment that you get from ~ / .bashrc ). I suggest that to add it to the beginning of your script, make sure that it is being implemented:

  "I am told: $ @" echo & gt; I_was_invoked.txt  

And then, somewhere else in your script, you should provide a printf / echo to determine where it is wrong. If you do this and post your script, it may be possible to help you.


Comments