Setting script file to startup applications

I’ve been struggling to get script tu run as a start-up application. This all started with trying to enable two finger scrolling, which i later found out that its something you could set in the control center under “mouse”. For the sake of me learning how to do this. I’m used pluma as a text editor. I need to save the script in /bin and make it and executable file by running command chmod +x /bin/scrolling, please advise if this is wrong, i did al this by reading around. I made the file executable(who’s name is “scrolling”) because if i double click it, it runs. I could also run it via terminal simply by entering its location /bin/scrolling. As per the instructions ive found i simply go to startup applications System>Preferences>Personal>Startup applications then add, naming it scrolling. Under the commant i just entered /bin/scrolling but this doesn’t make the script run. Please help me try to figure this out. I guess in short i want to learn how to make a script, make it executable and be able to startup.

Please excuse the fact that i may be calling files, commands and many other things by the wrong name. I’m a rookie when it comes to linux.

Notes: I have my systen(OS) in a different partition than my home files, if this makes any different at all.

Have you, first, tried this - in you your Applications Menu?

Putting a Startup Command in here is always the easiest way to go; but I wouldn't know if your scenario would somehow thwart your goal from being handled with this method. I cannot see where it could hurt, though. :smile:

1 Like

This exactly where i want to add it to. This is what i have. For some reason this isn't working upon start up. Could be due to something else but not entirely sure.


See if this method will do it for you (#4 - with the green check mark); and if not, I’ll look around. :smile:

Thanks for this, not sure if its the time of the night but i got lost with that link :joy: I did the synclient twofingerscroll enable.....and created a script using pluma the problem is that its just not running the script on startup. Any part you could point me to specifically on that link you provided?

I'd like to know what i did wrong with the initial method i started, if possible.
I created this script as copied from some instructions online, then saved in /bin followed by making executable with the chmod +x /bin/scrolling, nothing else after, no period as ive seen elsewhere and not .sh either, not sure what that is. After this im able to run the script by running it in terminal(and it does what its suposed to) just cant get it to run on startup.

I dont really want to just copy and following the instructions here(pictured below) are a bit confusing for me. I already made the script file, saved it and made it executable. I assume the other part would be entering it to the gconf settings? Also why the $HOME, since i dont have the bin file in my home location, would this vary. Not sure but this is why i mentioned i had my system files on a separate partition. Also why do i see ~/ what is that, isn't the root file just /

To answer your query on the tilde (~) symbol: it simply denotes the home directory of the logged-on user.

But you already executed these steps to make the trackpad, etc, work? :sweat:

http://ubuntuforums.org/showthread.php?t=1561311

http://ubuntuforums.org/archive/index.php/t-1479361.html

Can you copy and paste the command you are trying to run so people can read it, there might be something wrong with how the command is written. :smiley:

This is what i have in the startup applications(labeled "scrolling") to try and run the script. Im a bit confused but the "home" location, is this the root / location or the actual /home directory, because i do have them in seperate partitions as mentioned earlier(taken from the install guides).

The file seems to be correct in the sense that it does enable the two finger scroll once executed. I could also run it via terminal by simply entering its location "/bin/scrolling", thanks for the help as always!


Does this help?:

Not sure it does but i may have missed something in that text. I think that natural “method” is that the scrolling function is inverted or something of that aspect. I’m just trying to run a script on startup. I could easily go to control center and just enable the two finger trackpad scrolling under the “Mouse” settings. Thanks