You are not logged in.

#1 2018-09-23 15:26:02

zw963
Member
Registered: 2018-06-18
Posts: 213

/etc/gdm/Xsession not sourced after logged in gdm in gnome (SOLVED)

Here i have a refresh Gnome 3 install, i need add some tools to .xprofile,
but i found it never be source as expect. according see wiki, it seem like
gdm should source .xprofile in /etc/gdm/Xession, this file exists, And,
when i debug it, found it never be run when logged in with gdm.

The only change relation to GDM is, add one line code to /etc/systemd/system/display-manger.service, to make my laptop
multi display card loggin can work.

....
[Service]
ExecStartPre=/bin/sleep 3
...

I install gnome with one line

pacman -S gnome
systemctl enable gdm.service

following is gnome packages:

local/adwaita-icon-theme 3.30.0-1
    GNOME standard icons
local/baobab 3.30.0-1 (gnome)
    A graphical directory tree analyzer
local/cheese 3.30.0-1 (gnome)
    Take photos and videos with your webcam, with fun graphical effects
local/eog 3.28.3-1 (gnome)
    Eye of Gnome: An image viewing and cataloging program
local/epiphany 3.30.1-1 (gnome)
    A GNOME web browser based on the WebKit rendering engine
local/evince 3.30.0+8+g238f8ee6-1 (gnome)
    Document viewer (PDF, Postscript, djvu, tiff, dvi, XPS, SyncTex support with gedit, comics books (cbr,cbz,cb7 and cbt))
local/evolution 3.30.0-1 (gnome-extra)
    Manage your email, contacts and schedule
local/file-roller 3.30.0-1 (gnome)
    Create and modify archives
local/gdm-plymouth 3.30.0-1 (gnome)
    Gnome Display Manager with Plymouth support.
local/gedit 3.30.0-2 (gnome)
    GNOME Text Editor
local/gjs 2:1.54.0+3+g15cf7c29-1
    Javascript Bindings for GNOME
local/gnome-autoar 0.2.3-1
    Automatic archives creating and extracting library
local/gnome-backgrounds 3.30.0-1 (gnome)
    Background images and data for GNOME
local/gnome-bluetooth 3.28.2-1
    The GNOME Bluetooth Subsystem
local/gnome-boxes 3.30.0-3 (gnome)
    Simple GNOME application to access remote or virtual systems
local/gnome-calculator 3.30.0+1+g782d83c6-1 (gnome)
    GNOME Scientific calculator
local/gnome-calendar 3.30.0-1 (gnome)
    Simple and beautiful calendar application designed to perfectly fit the GNOME desktop
local/gnome-characters 3.29.91-1 (gnome)
    A character map application
local/gnome-clocks 3.30.0-1 (gnome)
    Clocks applications for GNOME
local/gnome-color-manager 3.30.0-1 (gnome)
    GNOME Color Profile Tools
local/gnome-contacts 3.30-1 (gnome)
    Contacts Manager for GNOME
local/gnome-control-center 3.30.0+14+g0f5f0bd23-1 (gnome)
    GNOME's main interface to configure various aspects of the desktop
local/gnome-desktop 1:3.30.0-1
    Library with common API for various GNOME modules
local/gnome-dictionary 3.26.1-1 (gnome)
    Look up words in dictionary sources
local/gnome-disk-utility 3.30.0-1 (gnome)
    Disk Management Utility for GNOME
local/gnome-documents 3.30.0-1 (gnome)
    A document manager application for GNOME
local/gnome-font-viewer 3.30.0-1 (gnome)
    A font viewer utility for GNOME
local/gnome-getting-started-docs 3.30.0-1 (gnome)
    Help a new user get started in GNOME
local/gnome-keyring 1:3.28.2-1 (gnome)
    Stores passwords and encryption keys
local/gnome-logs 3.30.0-1 (gnome)
    A log viewer for the systemd journal
local/gnome-maps 3.30.0-1 (gnome)
    A simple GNOME 3 maps application
local/gnome-menus 3.13.3+30+g510ef1c-1 (gnome)
    GNOME menu specifications
local/gnome-music 1:3.30.0+10+gae02f798-2 (gnome)
    Music player and management application
local/gnome-online-accounts 3.30.0-1
    Single sign-on framework for GNOME
local/gnome-online-miners 3.30.0-1
    Crawls through your online content
local/gnome-photos 3.30.0-1 (gnome)
    Access, organize, and share your photos on GNOME
local/gnome-remote-desktop 0.1.6-1 (gnome)
    GNOME Remote Desktop server
local/gnome-screenshot-heavy-shadow 3.26.1-2 (gnome)
    Take pictures of your screen, with modified shadow effect
local/gnome-session 3.30.0-1 (gnome)
    The GNOME Session Handler
local/gnome-settings-daemon 3.30.0-1 (gnome)
    GNOME Settings Daemon
local/gnome-shell 3.30.0+25+g179cd0a3c-1 (gnome)
    Next generation desktop shell
local/gnome-shell-extensions 3.30.0-1 (gnome)
    Extensions for GNOME shell, including classic mode
local/gnome-software 3.30.0-1 (gnome)
    GNOME Software Tools
local/gnome-system-monitor 3.30.0-1 (gnome)
    View current processes and monitor system state
local/gnome-terminal 3.30.0-1 (gnome)
    The GNOME Terminal Emulator
local/gnome-themes-extra 3.28-1 (gnome)
    Extra Themes for GNOME Applications
local/gnome-todo 3.28.1-3 (gnome)
    Task manager for GNOME
local/gnome-user-docs 3.30.0-1 (gnome)
    User documentation for GNOME
local/gnome-user-share 3.28.0-1 (gnome)
    Easy to use user-level file sharing for GNOME
local/gnome-video-effects 0.4.3+13+g6867955-1 (gnome)
    Collection of GStreamer effects for GNOME
local/grilo-plugins 0.3.7-1 (gnome)
    A collection of plugins for the Grilo framework
local/gtksourceview3 3.24.9-2
    A text widget adding syntax highlighting and more to GNOME
local/gvfs 1.38.0+3+g7da3b0ba-1 (gnome)
    Virtual filesystem implementation for GIO
local/gvfs-afc 1.38.0+3+g7da3b0ba-1 (gnome)
    Virtual filesystem implementation for GIO (AFC backend; Apple mobile devices)
local/gvfs-goa 1.38.0+3+g7da3b0ba-1 (gnome)
    Virtual filesystem implementation for GIO (Gnome Online Accounts backend; cloud storage)
local/gvfs-google 1.38.0+3+g7da3b0ba-1 (gnome)
    Virtual filesystem implementation for GIO (Google Drive backend)
local/gvfs-gphoto2 1.38.0+3+g7da3b0ba-1 (gnome)
    Virtual filesystem implementation for GIO (gphoto2 backend; PTP camera, MTP media player)
local/gvfs-mtp 1.38.0+3+g7da3b0ba-1 (gnome)
    Virtual filesystem implementation for GIO (MTP backend; Android, media player)
local/gvfs-nfs 1.38.0+3+g7da3b0ba-1 (gnome)
    Virtual filesystem implementation for GIO (NFS backend)
local/gvfs-smb 1.38.0+3+g7da3b0ba-1 (gnome)
    Virtual filesystem implementation for GIO (SMB/CIFS backend; Windows client)
local/libgnomekbd 3.26.0+5+g1c1b585-1
    Keyboard management library
local/libnautilus-extension 3.30.0-1
    Library for extending the Default file manager for GNOME
local/libsoup 2.64.0+10+g263fb57d-1
    HTTP client/server library for GNOME
local/mousetweaks 3.12.0-2 (gnome)
    Mouse accessibility enhancements
local/mutter 3.30.0-2 (gnome)
    A window manager for GNOME
local/nautilus 3.30.0-1 (gnome)
    Default file manager for GNOME
local/nautilus-sendto 3.8.6+14+ge8a3604-1 (gnome-extra)
    Easily send files via mail
local/networkmanager 1.14.0-1 (gnome)
    Network connection manager and user applications
local/orca 3.30.0-1 (gnome)
    Screen reader for individuals who are blind or visually impaired
local/rygel 0.36.2-1 (gnome)
    UPnP AV MediaServer and MediaRenderer that allows you to easily share audio, video and pictures, and control of media player on your home network
local/simple-scan 3.30.0-1 (gnome)
    Simple scanning utility
local/sushi 3.30.0-2 (gnome)
    A quick previewer for Nautilus
local/totem 3.26.2-1 (gnome)
    Movie player for the GNOME desktop based on GStreamer
local/tracker 2.1.4-1 (gnome)
    Desktop-neutral user information store, search tool and indexer
local/tracker-miners 2.1.4-1 (gnome)
    Collection of data extractors for Tracker/Nepomuk
local/vino 3.22.0+19+g15eb3c5-1 (gnome)
    A VNC server for the GNOME desktop
local/xdg-user-dirs-gtk 0.10+9+g5b7efc6-1 (gnome)
    Creates user dirs and asks to relocalize them
local/yelp 3.30.0-1 (gnome)
    Get help with GNOME

Thanks

Last edited by zw963 (2018-09-23 19:39:45)

Offline

#2 2018-09-23 15:32:51

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: /etc/gdm/Xsession not sourced after logged in gdm in gnome (SOLVED)

Is GDM definitely starting X not Wayland?

Offline

#3 2018-09-23 15:36:45

zw963
Member
Registered: 2018-06-18
Posts: 213

Re: /etc/gdm/Xsession not sourced after logged in gdm in gnome (SOLVED)

Following is /etc/gdm/custom.conf, if this what you want, it keep no changed.

# GDM configuration storage

[daemon]
# Uncomment the line below to force the login screen to use Xorg
# WaylandEnable=false

[security]

[xdmcp]

[chooser]

[debug]
# Uncomment the line below to turn on debugging
#Enable=true

Offline

#4 2018-09-23 15:43:07

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: /etc/gdm/Xsession not sourced after logged in gdm in gnome (SOLVED)

loginctl show-session $XDG_SESSION_ID -p Type

Offline

#5 2018-09-23 15:43:47

zw963
Member
Registered: 2018-06-18
Posts: 213

Re: /etc/gdm/Xsession not sourced after logged in gdm in gnome (SOLVED)

Is GDM definitely starting X not Wayland?

Not sure about this, I guess what i used is Wayland, because "#WaylandEnable=false" is comment.

Last edited by zw963 (2018-09-23 15:45:05)

Offline

#6 2018-09-23 15:44:47

zw963
Member
Registered: 2018-06-18
Posts: 213

Re: /etc/gdm/Xsession not sourced after logged in gdm in gnome (SOLVED)

loqs wrote:
loginctl show-session $XDG_SESSION_ID -p Type
 ╰─ $ loginctl show-session $XDG_SESSION_ID -p Type
Type=wayland

Offline

#7 2018-09-23 16:02:31

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: /etc/gdm/Xsession not sourced after logged in gdm in gnome (SOLVED)

If you uncomment WaylandEnable=false in /etc/gdm/custom.conf then GDM should use X and consequently /etc/gdm/Xession.

Offline

#8 2018-09-23 19:22:34

zw963
Member
Registered: 2018-06-18
Posts: 213

Re: /etc/gdm/Xsession not sourced after logged in gdm in gnome (SOLVED)

loqs wrote:

If you uncomment WaylandEnable=false in /etc/gdm/custom.conf then GDM should use X and consequently /etc/gdm/Xession.

It worked.

But, when use xorg, it caused others issue about Xmodmap, so i switch back to Wayland.

finally, I delay my some x initalize scripts to run when open the first interactive shell to try to workaround this.

thanks

Offline

Board footer

Powered by FluxBB