![]() Registered Member ![]()
|
I'm trying to get the above script to run on startup. It's supposed to turn off the TouchPad on my notebook computer. I can't get it to run. The above file is stored in my Home directory as togglepad.sh. I can turn off the TouchPad by entering synclient TouchpadOff=1 in the Konsole terminal. However, I have to do this every time I start up so I'd like the script to do it for me. The script is enabled and set to run on startup, but it doesn't run. Does anyone have any suggestions for how to get this to run on startup? Thank you. |
![]() Administrator ![]()
|
Does it work if you run the script manually, e.g. ~/togglepad.sh ?
Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.
10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts |
![]() Registered Member ![]()
|
when I run "./togglepad.sh" I get
What is this telling me? Thanks. |
![]() Registered Member ![]()
|
It is telling you that the Bash shell is not installed. Change
#!/bin/bash to #!/bin/sh and try again. If it does not work, you have to install bash or a bash-compatible shell.
connect(post, SIGNAL(readSignature()), qapp, SLOT(quit()));
|
![]() Registered Member ![]()
|
I changed "togglepad.sh" as follows:
It didn't work. The Konsole output was:
It doesn't seem to like line 15 which contains "fi". I commented out "fi" and the terminal output said it couldn't find "fi". "bash" is installed. What to do? Thanks! |
![]() Registered Member ![]()
|
What does "which bash" say?
connect(post, SIGNAL(readSignature()), qapp, SLOT(quit()));
|
![]() Registered Member ![]()
|
|
Registered users: Bing [Bot], Evergrowing, Google [Bot]