Run init.d script in the context of the current user session.
- by akellehe
I'd like to run a script in init.d (on Fedora) in the context of the user session I'm logging in as.
I have a script called keyboard_deadkeys I wrote to set some deadkeys on my keyboard. The script is very simple:
#!/bin/bash
/usr/bin/xmodmap /home/julie/keymappings
I put it in the directory /etc/init.d so it will run at boot time. It is…