You are not logged in.
Hello,
I am using `lightdm` with `lightdm-gtk-greeter` to start my window manager, and programs.
The script, that is executed by `lightdm` is `~/.xinitrc`. I have various log messages in this script (`echo ThisIsHappening`). However, I cannot find these log messages anywhere. Places that I have looked at, so far:
- /var/log/lightdm
- /var/cache/lightdm
- /run/lightdm
- journalctl -b
Do you have an idea, where stdout is redirected to when using lightdm? I could redirect all my output to a specific log file, however, I would prefer to know, where the logs really go...
Thanks,
Dominik
community/lightdm 1:1.14.0-3
community/lightdm-gtk-greeter 1:2.0.1-2
Last edited by fazky (2015-06-22 11:56:15)
Offline
What makes you think that LightDM is parsing your ~/.xinitrc file in the first place?
The .xinitrc file is only used by the startx command, DM's don't even look at it.
Edit - Ignore this post, it looks loke LightDM does source the .xinitrc file after all instead of just .xprofile as I previously thought, sorry.
Last edited by Slithery (2015-06-20 08:05:00)
Offline
Have you tried to look in ~/.xsession-errors (if you have it)?
--edit[0]:
Edit - Ignore this post, it looks loke LightDM does source the .xinitrc file after all instead of just .xprofile as I previously thought, sorry.
Is that so? Looking at the file /etc/lightdm/Xsession it seem that LightDM sources the system wide xinitrc configuration files in /etc/X11/xinit/xinitrc.d. The user configuration files sourced seems to be only .xprofile, .Xresources, .Xkbmap and .Xmodmap.
PS: Beated by Raynman ![]()
Last edited by mauritiusdadd (2015-06-20 15:30:50)
Offline
I'll repeat the question (and I'm wondering what prompted the edit):
What makes you think that LightDM is parsing your ~/.xinitrc file in the first place?
The .xinitrc file is only used by the startx command, DM's don't even look at it.
Edit - Ignore this post, it looks loke LightDM does source the .xinitrc file after all instead of just .xprofile as I previously thought, sorry.
The package (by default) uses this script to set up your X session and it does not use ~/.xinitrc. It execs the command line that it receives as arguments and that should be an Exec= line from a .desktop file in the xsessions directory (these are the options in the session selection widget in the greeter).
Offline
The edit was prompted by reading the Xprofile page which seemed to suggest that the xinitrc files were sourced by LightDM, although I never believed this to be the case hence my first post.
Offline
Hello,
I am not sure why it sources my `.xinitrc`. However, I am sure that it does indeed happen ;-)! I also can see this in the lightdm debug file `/var/log/lightdm/lightdm.log`:
[+234715.91s] DEBUG: Session pid=630: Running command /etc/lightdm/Xsession /home/dominik/.xinitrcNo messages pop up in `.xsession-errors`.
Thanks for your responses!
Cheers,
Dominik
Edit: Oh, I know now, why it sources my `.xinitrc`. I state this in my xsession file that is started by `/etc/lightdm/Xsession`.
Last edited by fazky (2015-06-22 09:08:17)
Offline
I don't use LightDM so I have no other idea, but are you sure that LightDM redirects the stdout/stderr to the log file? Have you tried to write the messages to the stderr? Perhaps it is simpler if you just write your messages to a log file
echo "ThisIsHappening" > $logfileOffline
Yea, I mean this would be a solution, but it makes me a little uneasy, that all my messages are just lost somewhere. Also, `journalctl _PID=630` (Xsession had PID 630 in my case) does not show any log messages...
I will use this solution for now though, thank you,
Dominik
Offline