Who starts the screen saver in Xfce 4.10?
Slackware 14.0
Xfce 4.10 Hi: I have been trying to find the script the screen saver is run from, after I run startx, if there is one. In 12.0, there was /etc/xfce/xdg/xfce4/xinitrc (f1), from where /usr/bin/xscreensaver (f2) was launched. f1 is now /etc/xdg/xfce4/xinitrc (f3), but f2 is not run from f3. I do Code:
|
Hi
That would be Code:
xdg/autostart/xscreensaver.desktop As its path suggests, it is started automatically when you log in XDG-compliant DE like XFCE and KDE (see Desktop Application Autostart Specification). You could think of it as working like the "Startup" folder of Windows' Start menu. System-wide settings (à la Windows' "All users") are in Code:
/etc/xdg/autostart Code:
~/.config/autostart Code:
~/.kde/Autostart |
Thank you. If I do 'less /etc/xdg/autostart/screensaver.desktop, I find a lot of unprintable characters, besides the following:
Code:
Icon=preferences-desktop-screensaver Without knowing all this, I had a feeling that things were done each time more like in Windows!? Are the unprintable caracters unicode chararctes? |
Hi
I run KDE, not XFCE. Yet, this How to disable xfce screensaver points us in the right direction. According to the "important note" near the end of /etc/xdg/xfce4/xinitrc, the content of /etc/xdg/autostart is considered only if your are not using Xfce's session manager (xfce4-session). If you actually use xfce4-session, and you certainly do if you didn't mangled your user's .xinitrc (better use xwmconfig as root to set XFCE as the system-wide DE default), you don't need to bother with the content of /etc/xdg/autostart. Instead, start XFCE and just run xfce4-settings-manager to disable screensaver (see Xfce 4 Screensaver Settings for instance). Lastly, yes, the unprintable characters are Unicode: "Name[xy]=" and "Comment[xy]=" are localized strings of "Name=" and "Comment=", where xy is a language code. Cheers |
That is the great "Why": /etc/xdg/xfce4/xinitrc has the execute bit off. The installer did this!
About disabling from the GUI, it hanged the GUI in 12.0 and still has problems in 14.0. As nobody does this, disabling the screen saver, few people notices the disastrous effect. The effect in 14.0 is I am left without the window manager. |
Quote:
|
No Sir. It begins '#!/bin/sh'. The xinitrc file was never anything but a shell script executable file. So the question remains: why this file has the 'x' bit off.
|
Hi
Follow the trail: Code:
/usr/X11/xinit/xinitrc.xfce Code:
/usr/bin/startxfce4 Code:
/etc/xdg/xfce4/xinitrc Cheers |
In /etc/xdg/xfce4/xinitrc, the last line is
'exec $prog /etc/xdg/xfce4/xinitrc $CLIENTRC $SERVERRC'. $prog = '/bin/sh' here. And $CLIENTRC, $SERVERRC are just options. So /bin/sh executes /etc/xdg/xfce4/xinitrc. Suppose not. But /etc/xdg/xfce4/xinitrc is a shell script: Code:
semoi@darkstar:~$ head -n15 /etc/xdg/xfce4/xinitrc |
Quote:
|
All times are GMT -5. The time now is 09:02 AM. |