Changeset 86324838 for gnome/platform


Ignore:
Timestamp:
02/26/2023 09:02:44 PM (19 months ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
11.3, 12.0, 12.1, 12.2, gimp3, kea, ken/TL2024, ken/tuningfonts, lazarus, lxqt, plabs/newcss, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/for-12.3, xry111/llvm18, xry111/spidermonkey128, xry111/xf86-video-removal
Children:
60244f7
Parents:
8fdbeef
Message:

Tweak /usr/share/{x,wayland-}sessions files

Don't create a "deprecated directory, just remove spurious files
also fix starting gnome-wayland from lightdm

File:
1 edited

Legend:

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

    r8fdbeef r86324838  
    154154
    155155
    156   <para>This package creates two Xorg based .desktop files in the
    157   /usr/share/xsessions/ directory.  Only one is needed in a
    158   BLFS system, so prevent the extra file showing up as an option
    159   in a window manager.  Also differentiate the X11 and Wayland versions
    160   of Gnome.  As the &root; user:</para>
    161 
    162 <screen role="root"><userinput>mkdir -p /usr/share/xsessions/deprecated                                      &amp;&amp;
    163 mv -v /usr/share/xsessions/gnome-xorg.desktop /usr/share/xsessions/deprecated &amp;&amp;
    164 sed -i '/Name/s/$/ (X11)/' /usr/share/xsessions/gnome.desktop
    165 </userinput></screen>
     156    <para>
     157      This package creates two Xorg based <filename>.desktop</filename> files
     158      in the <filename class="directory">/usr/share/xsessions/</filename>
     159      directory, and two Wayland based <filename>.desktop</filename> files in
     160      the <filename class="directory">/usr/share/wayland-sessions/</filename>
     161      directory.  Only one is needed in each directory on a BLFS system, so
     162      prevent the extra files showing up as options in a display manager.  As
     163      the &root; user:
     164    </para>
     165
     166<screen role="root"><userinput>rm -v /usr/share/xsessions/gnome.desktop &amp;&amp;
     167rm -v /usr/share/wayland-sessions/gnome.desktop</userinput></screen>
    166168
    167169    <para revision="sysv">
     
    171173
    172174<screen role="root" revision="sysv"><userinput>rm -rv /tmp/{*.d,*.target,*.service}</userinput></screen>
     175
     176<!-- this part is not needed on systemd, since the dbus session is created
     177by systemd-user.-->
     178    <para revision="sysv">
     179      The startup sequence of gnome-wayland needs to create a dbus session.
     180      On SysV, this has to be added to the shipped
     181      <filename>gnome-wayland.desktop</filename> file, which is written for
     182      systemd. As the &root; user:
     183    </para>
     184
     185<screen role="root" revision="sysv"><userinput>sed -e 's@^Exec=@&amp;/usr/bin/dbus-run-session @' \
     186    -i /usr/share/wayland-sessions/gnome-wayland.desktop</userinput></screen>
    173187
    174188  </sect2>
Note: See TracChangeset for help on using the changeset viewer.