![]() Registered Member ![]()
|
Hi!
I've searched for answer all over the internet (not only this forum) but I couldn't find answers to all of my questions. In gnome (I think that in Fluxbox also) I can create script like this:
mark it as executable, and then to run it I can: double click on it (on his icon), use [ALT]+[F2] launcher, open terminal, or simply add it to menu, and I don't have to mark option to run it in terminal (it means that there is no need to opne Konsole to run that script – it can run in background). It just works anyway I want. Well… In KDE I can't find option to do it the same easy way. I have file with script market as executable, but when I double click it nothing happen. Also when I try to run it in [ALT]+[F2] launcher it doesn't work (in Gnome for example ./my_script works, so I tried the same way in KDE but it doesn't recognize it as command and [ALT]+[F2] launcher stays opened waiting to correct that command, but 'bash my_script', 'sh my_script', '. my_script', or alternatively with /home/user/my_script path also doesn't work). I fount way to run script from a link to it, so I can run it double clicking on link. I can also add script to menu but I must mark the option to open script in terminal. Still the easiest (and the most frequently) way to run my scripts in Gnome with [ALT]+[F2] launcher doesn't seems to work anyway :c Am I doing something wrong, or maybe there is a better solution than all Gnome ways to run scripts? Or maybe KDE philosophy doesn't allow to even think about using scripts (because it's so good looking and easy to use) ![]() I have some programs that (for me) the easiest way to use them is via scripts, but still there is no need to see how does they work in terminal. It's just need to run it and forget till next use without worry to close their Konsole window accidentally… |
![]() Registered Member ![]()
|
I have a script in /home/~user/bin that runs fine. You don't say where the script is located.
John Hudson, proud to be a member of KDE forums since 2008-Oct.
|
![]() Registered Member ![]()
|
It can be /home/user/ , /home/user/scripts or other location. I have no /home/user/bin folder.
EDIT: Sometimes not everything is clear for me, because my English is poor…
Last edited by Druedain on Tue Jul 26, 2011 9:29 am, edited 1 time in total.
|
![]() Administrator ![]()
|
It is probable that the script has executed, but it's current directory was probably ~/Documents/...
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Funny. I checked Documents and now there is folder 'a'
![]() And still I have script that launches Java application (java -jar 'app directory') that runs in Gnome, but in KDE nothing happens… |
![]() Administrator ![]()
|
I believe this is because the shell is launched from the default start directory, which is ~/Documents, so the working directory is ~/Documents rather than your current directory.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]