문제

I have built a program on Ubuntu 12.04 using Lazarus.

My development code is in /home/Laz but my binary is put in /urs/local/bin

However, my program shortcut is on the Desktop.

What I need to do: When the program shortcut is clicked, it all works BUT I want the program to run from within the /usr/local/bin path and NOT from the Desktop where the shortcut is located.

How is this done?

Thanks!

도움이 되었습니까?

해결책

As you've discerned, the way to redirect the path on load is:

(cd /usr/local/bin && /usr/local/bin/MyCode)

Once we sort out how to correct the popup prompt, I'll add that in here as well.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top