LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-18-2012, 01:00 AM   #1
pwnage101
LQ Newbie
 
Registered: Dec 2011
Distribution: openSUSE
Posts: 9

Rep: Reputation: Disabled
where are session startup scripts located?


(Ubuntu 11.10)
I want to control which daemons/programs that are started up at session login. Below is my session startup script but there are several other daemons that get started despite my setup. Most of these extra daemons I don't mind, but I am curious how they get started in the first place. There are two in particular that i do NOT want started automatically, but don't want to uninstall either:
notify-osd
gnome-screensaver

I use Ubuntu 11.10. From lightdm I select my preferred xsession and log in. Below, I show my xmonad-custom session as an example.

Here is my /usr/share/xsessions/xmonad-custom.desktop
Code:
[Desktop Entry]
Encoding=UTF-8
Name=XMonad-custom
Comment=Lightweight tiling window manager
Exec=xmonad-custom
Icon=xmonad.png
Type=XSession
and xmonad-custom
Code:
#!/bin/sh
thunar --daemon &
touchpad-indicator &
feh --bg-fill /home/sankey/Pictures/Snow-Leopard-Server-wallpaper.jpeg &
dropbox start &
synapse -s &
numlockx &
xsetroot -cursor_name left_ptr &
exec xmonad
I found this thread but /etc/rc.local did not contain any scripts for gnome-screensaver or notify-osd.
Where is the startup script located?

Thanks!

Last edited by pwnage101; 01-18-2012 at 03:00 AM.
 
Old 01-18-2012, 03:52 AM   #2
heinblöd
Member
 
Registered: May 2004
Location: France
Distribution: Slackware Gentoo
Posts: 186

Rep: Reputation: 31
Screensavers are often started from the system xinitrc or the users xinitrc (Could be in /etc/X11/xinit/xinitrc and ~/.xinitrc)

Most startup scripts are in per DE dirs , for Gnome/xfce they might be in ~/config/autostart/ for Kde in ~/kde/autostart (user) and in /usr/share/autostart and /usr/share/gnome/autostart.(system)

You may have additional places for autostart depending on your DE

The thread you mention is about system startup scripts.
These are two pair of shoes, as the system startup scripts are executed even if you do *not* boot into your Desktop-enviroment.

The xinitrc scripts and the .desktop files are executed if you start your DE and can be different for KDE/Gnome/Xfce etc

Last edited by heinblöd; 01-18-2012 at 04:25 AM.
 
1 members found this post helpful.
Old 01-18-2012, 07:36 PM   #3
pwnage101
LQ Newbie
 
Registered: Dec 2011
Distribution: openSUSE
Posts: 9

Original Poster
Rep: Reputation: Disabled
I checked "/etc/X11/xinit/xinitrc" and it contains one line that executes another script, namely "/etc/X11/Xsession", which is a much more complicated script consisting of several functions and conditionals that I do not understand.

I do not have a ~/.xinitrc file.

I checked the directories you mentioned and found /usr/share/gnome/autostart/gnome-screensaver.desktop. However, I do not use Gnome or any shell of Gnome so that cannot start, right?

The only DE's I have installed are unity and gnome-shell, but I do not use them. KDE and xfce are not installed. xmonad is my window manager and DE. Would you agree that the only way gnome-screensaver or notify-osd gets started is via the complicated "/etc/X11/Xsession" script?

Quote:
Originally Posted by heinblöd View Post
The thread you mention is about system startup scripts.
These are two pair of shoes, as the system startup scripts are executed even if you do *not* boot into your Desktop-enviroment.
Ah, ok.
 
Old 01-19-2012, 10:48 AM   #4
heinblöd
Member
 
Registered: May 2004
Location: France
Distribution: Slackware Gentoo
Posts: 186

Rep: Reputation: 31
I don't know xnomad but it seems to be a Windowmanager and not a complete DE .
So it's very likely that it will use a gnome-session or a kde-session .

Even if not, it could start services from other DE like xfce does where you can start gnome or/and kde services if you want to.

Even the DM (lightdm in your case) could start things already before any WM/DE will be started.

So I would try to have a look at the running processes to check, what get's executed .

It's not impossible that the gnome/autostart folder gets used as many DE try to follow the XDM standards to unify startup and menu stuff etc.

Have a look if you have got a .xsession-errors in your home or a logfile from lightdm (maybe /var/log/lightdm.log ) or similar.

You could also change to the first tty with ctrl+alt+F1 while xnomad starts, maybe you'll see what happens there
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PlayOnLinux: Where are the install scripts located? Meson Linux - Desktop 0 10-06-2009 02:49 AM
Where is the startup script located? natm Linux - Software 5 09-22-2007 02:56 AM
Mandriva startup scripts (need to add something to startup before X starts) thunderweasel Mandriva 3 01-01-2006 01:55 AM
where are boot scripts located matt_w_lambert Linux - General 3 01-11-2004 08:57 PM
X Startup Scripts JHuizingh Linux - General 1 09-18-2001 02:02 PM


All times are GMT -5. The time now is 02:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration