Wednesday, August 15. 2007Wednesday Why: Logins and SessionsTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
Thank you for this Wednesday Why. That's a very interesting topic and a very good explanation. I knew that .bash_profile is also read when starting a X-session with GDM/KDM/XDM but I didn't know that this (without those chains as in Fedora) isn't normal behaviour.
One question left: when you start your X with ´startX´ on the command line and not with GDM/KDM/XDM, is there still a session started? I guess it is.
'startx' is a script which runs 'xinit', which in turn runs the script 'Xclients', which usually runs gnome-session or startkde -- so the session manager does get started. I suppose that makes it a session too...
Thank you for this detailed explanation of how the GDM login process executes ~/.bash_profile. It answers something that has puzzled me for a long time.
I see that "exec -l" causes the zeroth argument of the executed command to be preceded by a dash. When bash sees that it was executed as "-bash" it knows that it has been invoked as a login shell and executes the appropriate startup files. Indeed, /bin/login invokes the shell in this same manner. I think I'll experiment with putting echo and zenity statements in various startup scripts to better my understanding of them. Maybe using the logger [1] command to send messages to a log file via syslog can be useful for this? [1] http://dailypackage.fedorabook.com/index.php?/archives/104-Wednesday-Why-Syslog.html
Hi,
I just installed Fedora 8 x86_64 I used csh and KDE. Normally, .login is load when I login (in graphical mode) but that not the case. I tried with an user with bash. Same problem, the bash_profile is not load at all. When I login with in character mode, the .login is load normally. Can you help me ?
Trinh -- in gnome-terminal, edit the profile and under "Title and Command" make sure "Run command as a login shell" is checked. There'll be something similar in the KDE shell app.
Thank you for clearing up the login process and separating the char mode from the gui mode. I have been looking for this answer for a while. linuxquestions.org sent me to this article. Thanks again.
|
Welcome!The Fedora Daily Package exists to highlight lesser-known Fedora Linux packages each weekday-- with a special article each Wednesday taking a behind-the-scenes look at some of the configuration options and packaging details that make Fedora tick. For more information, please see the Fedora Daily Package Welcome posting. For information on the Fedora package management system and how to install, update, and remove pacakges, see the postings from Package Management Week (especially Using Yum). To suggest a future Fedora Daily Package, use the Suggest a Package box below. TranslationsTranslations of selected articles: [fr] Paquet Fedora du jour [zh] Allen Chen's Blog BooksBooks related to Fedora, including Fedora Linux and X Power Tools by Chris Tyler (this site's editor): Suggest a PackageCategoriesChris Tyler's BlogLooking for a Debugging Mentor
Wednesday, February 20. 2013 Acessing the armv6hl Koji Buildsystem Monday, February 11. 2013 Why the Pi is Great for Teaching and Hacking Friday, January 18. 2013 SBR600 - Winter 2013 Monday, December 17. 2012 The OSTEP Team Wednesday, November 28. 2012 QuicksearchBlog AdministrationLicense![]() Original material in the Fedora Daily Package is Copyright ©2006-2008 by Chris Tyler. This material may be distributed under the Creative Commons Attribution-Share Alike 2.5 Canada License or the Open Publication License. |