Author Topic: how to run a simple script automatically at login  (Read 662 times)

Offline thelynx

  • Newbie
  • *
  • Posts: 9
how to run a simple script automatically at login
« on: January 21, 2015, 06:28:06 am »
I am running the latest version of Sparky 64-bit XFCE, but I'm using the Enlightenment Window Manager instead.

I've been researching for far too long now on how to run the following simple bash script on successful login (I'm the only user):

Code: [Select]
#!/bin/bash
synclient TapButton1=1
syndaemon -i 1 -t -d

The file is named touchpad.sh and I have already added permission to execute.  But where do I save the script so that it will run automatically at login? Is there anything else I need to do?

I've tried a number of options on the net, but can't seem to get it working except by manually running it every time I log in, which is a bit of a pain.  I managed to make it run on Bodhi Linux a year or so ago, but unfortunately, I can't for the life of me remember how, though I do remember it was something quite simple.

Any help would be much appreciated. Thanks in advance.

Incidentally, I am very impressed with Sparky. Thanks to all those involved in its development!







Offline MoroS

  • Sr. Member
  • ****
  • Posts: 255
  • Problem solver ;)
Re: how to run a simple script automatically at login
« Reply #1 on: January 21, 2015, 12:36:59 pm »
I'm a bit lazy today, so I'll just provide a link to a similar post on the ArchLinux BBS.
https://bbs.archlinux.org/viewtopic.php?id=65194

The usage should be the same, so no need to rewrite everything here.
There isn't a single thing that's impossible. Just the things that we don't yet know how to deal with. ;)

Offline one23

  • Newbie
  • *
  • Posts: 29
Re: how to run a simple script automatically at login
« Reply #2 on: February 01, 2015, 11:30:30 am »
If you're having trouble with configuring touchpad have a look here

https://bbs.archlinux.org/viewtopic.php?id=65194