Please support VectorLinux!

Author Topic: How to have different startup scripts per user?  (Read 1466 times)

Stokstaartje

  • Member
  • *
  • Posts: 36
How to have different startup scripts per user?
« on: March 10, 2008, 04:23:58 pm »
I would like to have different tasks to run at start-up depending on which user is logging in on the machine. To my understanding this rules out using /etc/rc.d/rc.local for storing these tasks. Or does it?
----------------------------------
I hope I didn't brain my damage!

Triarius Fidelis

  • Vecteloper
  • Vectorian
  • ****
  • Posts: 2399
  • Domine, exaudi vocem meam
    • my website
Re: How to have different startup scripts per user?
« Reply #1 on: March 10, 2008, 05:12:53 pm »
logging in where? on the console? in kdm?

That must be known first
"Leatherface, you BITCH! Ho Chi Minh, hah hah hah!"

Formerly known as "Epic Fail Guy" and "Döden" in recent months

rbistolfi

  • Packager
  • Vectorian
  • ****
  • Posts: 2299
Re: How to have different startup scripts per user?
« Reply #2 on: March 10, 2008, 05:13:24 pm »
rc.local is executed before any user is logged, what kind of commands do you want to run?

Epic was faster.
"There is a concept which corrupts and upsets all others. I refer not to Evil, whose limited realm is that of ethics; I refer to the infinite."
Jorge Luis Borges, Avatars of the Tortoise.

--
Jumalauta!!

Stokstaartje

  • Member
  • *
  • Posts: 36
Re: How to have different startup scripts per user?
« Reply #3 on: March 10, 2008, 05:33:11 pm »
That would be kdm.

For example, whenever I login I have signify generate a random signature. This signature gets used in Thunderbird. Different users have their own set of signatures to pick from.

Does this clarify it a bit better?
----------------------------------
I hope I didn't brain my damage!

Triarius Fidelis

  • Vecteloper
  • Vectorian
  • ****
  • Posts: 2399
  • Domine, exaudi vocem meam
    • my website
Re: How to have different startup scripts per user?
« Reply #4 on: March 10, 2008, 05:45:42 pm »
On 5.9 Standard, at any rate, KDE's Xsession sources ~/.bash_profile (which in turn sources ~/.bashrc). You could run signify there perhaps.
"Leatherface, you BITCH! Ho Chi Minh, hah hah hah!"

Formerly known as "Epic Fail Guy" and "Döden" in recent months

The Headacher

  • Louder than you
  • Global Moderator
  • Vectorian
  • *****
  • Posts: 1553
  • I like the bass to go BOOM!
    • Multimedia on VL (work in progress)
Re: How to have different startup scripts per user?
« Reply #5 on: March 11, 2008, 01:26:18 pm »
There's a KDE specific HOWTO thingy here: http://en.opensuse.org/SDB:Applications_autostart_in_KDE

I knew about the ~/.kde/Autostart dir, but I was unsure how to use it. Looks easy enough though.
Most music on my soundcloud page was arranged in programs running on VL.