Changeset 75215bf for gnome/platform


Ignore:
Timestamp:
01/15/2017 12:20:55 AM (7 years ago)
Author:
DJ Lucas <dj@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
c252262
Parents:
e0ba182
Message:

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

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@18185 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gnome/platform/gnome-session.xml

    re0ba182 r75215bf  
    105105  <sect2 role="installation">
    106106    <title>Installation of GNOME Session</title>
     107
     108    <para>
     109      When running Gnome under <xref linkend="wayland"/>, environment settings
     110      are not imported for the user using the system's
     111      <filename>/etc/profile</filename>. The Wayland developers are currently
     112      undecided on a standard method to provide system environment settings for
     113      user sessions. To work around this limitation, execute the following
     114      commands to import the system environment from
     115      <filename>/etc/profile</filename>:
     116    </para>
     117
     118<screen><userinput>mv gnome-session/gnome-session.{in,bak} &amp;&amp;
     119cat &gt; gnome-session/gnome-session.in &lt;&lt; "EOF" &amp;&amp;
     120<literal>#!/bin/sh
     121
     122# Source /etc/profile if running in Xwayland
     123if [ "${XDG_SESSION_TYPE}" == "wayland" ]; then
     124    . /etc/profile
     125fi</literal>
     126EOF
     127sed 's@#!/bin/sh@@' gnome-session/gnome-session.bak >> \
     128    gnome-session/gnome-session.in</userinput></screen>
    107129
    108130    <para>
Note: See TracChangeset for help on using the changeset viewer.