![]() Registered Member ![]()
|
Hi,
Long time ago I created my custom activator in start menu. It worked fine. But few weeks ago, with recent dist upgrade I see only app icon for a second in task bar and nothing happen, application is not running. It is placed in dev category. Command line in activator item is:
And script by itself:
Note if I go to lazarus_1_8 dir and run ./mystartlazarus.sh from console then everything is fine. Where I can see in logs what is going wrong behind? Regards |
![]() Registered Member ![]()
|
run the script itself outside its location in a terminal to see where it is failing
ie
or similar
claydoh, proud to be a member of KDE forums since 2008-Oct, and KDE user since 2001
|
![]() Registered Member ![]()
|
It start fine. Weird. Problem is only with this specific program, my another custom activator works fine but it start binary executable directly, no sh script
|
![]() Registered Member ![]()
|
Running with sh on the front is only necessary if the script isn't marked executable. Claydoh's suggestion is to see if launching it in another working directory (or with no working directory) results in any errors.
Another option is in the properties dialog for the (activator) shortcut, under Application -> Advanced Options there should be an option to Run in Terminal which you can check (along with Do not close when command exits) to have it display the command output when you use the shortcut.
airdrik, proud to be a member of KDE forums since 2008-Dec.
|
![]() Registered Member ![]()
|
Single call "/home/kris/programowanie/lazarus_1_8/mystartlazarus.sh" outside dir, without "sh" prefix also works fine
Ok, we have something new, with terminal option I get message (from polish translation):
Both files "mystartlazarus.sh" and "startlazarus" are marked as executable. In activator settings I added "sh" prefix before path to script and everything works fine again! Thanks gays! But weird that it wasn't necessary before |
Registered users: Bing [Bot], Google [Bot]