[Bug 750980] New: scripts from /etc/X11/xinit/xinitrc.d/ are executed and not sourced
https://bugzilla.novell.com/show_bug.cgi?id=750980 https://bugzilla.novell.com/show_bug.cgi?id=750980#c0 Summary: scripts from /etc/X11/xinit/xinitrc.d/ are executed and not sourced Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: All OS/Version: openSUSE 12.1 Status: NEW Severity: Normal Priority: P5 - None Component: X.Org AssignedTo: bnc-team-xorg-bugs@forge.provo.novell.com ReportedBy: joerg.steffens@dass-it.de QAContact: xorg-maintainer-bugs@forge.provo.novell.com Found By: --- Blocker: --- Created an attachment (id=480054) --> (http://bugzilla.novell.com/attachment.cgi?id=480054) source scripts from /etc/X11/xinit/xinitrc.d/ User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2 The xinit system is used to configure X11. For this, environment variables are set. To make this more configurable for other RPMs, a directory /etc/X11/xinit/xinitrc.d/ has been added in the past, to place additional scripts in there. However, while /etc/X11/xinit/xinitrc sources /etc/X11/xinit/xinitrc.common, the scripts from /etc/X11/xinit/xinitrc.d/ are executed, not sourced. The result is, that environment variables set there are not passed to the X11-session. An example, where this fails is the RPM libcanberra-gtk, that sets GTK_MODULES. Reproducible: Always Steps to Reproduce: 1.install libcanberra-gtk 2.start a X11 session 3.check if GTK_MODULES is set Actual Results: environment variables set in /etc/X11/xinit/xinitrc.d/ are not available in X11 Expected Results: environment variables set in /etc/X11/xinit/xinitrc.d/ should be available in X11 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=750980
https://bugzilla.novell.com/show_bug.cgi?id=750980#c1
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=750980
https://bugzilla.novell.com/show_bug.cgi?id=750980#c
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=750980
https://bugzilla.novell.com/show_bug.cgi?id=750980#c2
Joerg Steffens
https://bugzilla.novell.com/show_bug.cgi?id=750980
https://bugzilla.novell.com/show_bug.cgi?id=750980#c3
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=750980
https://bugzilla.novell.com/show_bug.cgi?id=750980#c4
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=750980
https://bugzilla.novell.com/show_bug.cgi?id=750980#c5
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=750980
https://bugzilla.novell.com/show_bug.cgi?id=750980#c6
Vincent Untz
? These scripts are supposed to be executed, not sourced.
Are you sure? I think that on other distros, those scripts are sourced. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=750980
https://bugzilla.novell.com/show_bug.cgi?id=750980#c7
--- Comment #7 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=750980
https://bugzilla.novell.com/show_bug.cgi?id=750980#c8
--- Comment #8 from Vincent Untz
OK now let me asked from which distribution we are talking?
I asked around and looked at my test VMs. Here's the result: - on Debian/Ubuntu, the directory is named /etc/X11/Xsession.d/ and files are sourced - on Mandriva (so I guess that's valid for Mageia), scripts could be sourced or executed based on some "attribute" (a grep for a comment), see http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/xinitrc/current/SOURCES/Xsession?revision=639193&view=markup (the directory is named /etc/X11/xinit.d there) - on Fedora, files are sourced (by /etc/X11/xinit/xinitrc-common) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=750980
https://bugzilla.novell.com/show_bug.cgi?id=750980#c9
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=750980
https://bugzilla.novell.com/show_bug.cgi?id=750980#c
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=750980
https://bugzilla.novell.com/show_bug.cgi?id=750980#c10
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=750980
https://bugzilla.novell.com/show_bug.cgi?id=750980#c11
Dominique Leuenberger
https://bugzilla.novell.com/show_bug.cgi?id=750980
https://bugzilla.novell.com/show_bug.cgi?id=750980#c12
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=750980
https://bugzilla.novell.com/show_bug.cgi?id=750980#c13
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=750980
https://bugzilla.novell.com/show_bug.cgi?id=750980#c14
Dominique Leuenberger
https://bugzilla.novell.com/show_bug.cgi?id=750980
https://bugzilla.novell.com/show_bug.cgi?id=750980#c15
--- Comment #15 from Dominique Leuenberger
https://bugzilla.novell.com/show_bug.cgi?id=750980
https://bugzilla.novell.com/show_bug.cgi?id=750980#c16
Stefan Dirsch
submit request id 126878
Accepted and forwarded to openSUSE:Factory (SR#126885). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=750980
https://bugzilla.novell.com/show_bug.cgi?id=750980#c17
--- Comment #17 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com