Author: dj
Date: Sat Jan 14 16:20:55 2017
New Revision: 18185

Log:
Import system environemnt (/etc/profile) in gnome-session for Wayland session.

Modified:
   trunk/BOOK/gnome/platform/gnome-session.xml
   trunk/BOOK/introduction/welcome/changelog.xml

Modified: trunk/BOOK/gnome/platform/gnome-session.xml
==============================================================================
--- trunk/BOOK/gnome/platform/gnome-session.xml Sat Jan 14 15:07:49 2017        
(r18184)
+++ trunk/BOOK/gnome/platform/gnome-session.xml Sat Jan 14 16:20:55 2017        
(r18185)
@@ -106,6 +106,28 @@
     <title>Installation of GNOME Session</title>
 
     <para>
+      When running Gnome under <xref linkend="wayland"/>, environment settings
+      are not imported for the user using the system's
+      <filename>/etc/profile</filename>. The Wayland developers are currently
+      undecided on a standard method to provide system environment settings for
+      user sessions. To work around this limitation, execute the following
+      commands to import the system environment from
+      <filename>/etc/profile</filename>:
+    </para>
+
+<screen><userinput>mv gnome-session/gnome-session.{in,bak} &amp;&amp;
+cat &gt; gnome-session/gnome-session.in &lt;&lt; "EOF" &amp;&amp;
+<literal>#!/bin/sh
+
+# Source /etc/profile if running in Xwayland
+if [ "${XDG_SESSION_TYPE}" == "wayland" ]; then
+    . /etc/profile
+fi</literal>
+EOF
+sed 's@#!/bin/sh@@' gnome-session/gnome-session.bak >> \
+    gnome-session/gnome-session.in</userinput></screen>
+
+    <para>
       Install <application>GNOME Session</application> by
       running the following commands:
     </para>

Modified: trunk/BOOK/introduction/welcome/changelog.xml
==============================================================================
--- trunk/BOOK/introduction/welcome/changelog.xml       Sat Jan 14 15:07:49 
2017        (r18184)
+++ trunk/BOOK/introduction/welcome/changelog.xml       Sat Jan 14 16:20:55 
2017        (r18185)
@@ -53,6 +53,10 @@
           <para>[bdubbs] - Revert lmdb to version 0.9.19. Fixes
           <ulink url="&blfs-ticket-root;8750">#8750</ulink>.</para>
         </listitem>
+        <listitem>
+          <para>[dj] - Import system environemnt (/etc/profile) in
+          gnome-session for Wayland session.</para>
+        </listitem>
       </itemizedlist>
     </listitem>
 
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to