LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 05-24-2018, 11:37 AM   #1
linuxuser7
Member
 
Registered: Apr 2018
Location: Ohio, USA
Distribution: openSUSE Tumbleweed, Ubuntu 18.04, Scientific Linux 7.5
Posts: 72

Rep: Reputation: Disabled
How to tell whether a session is an X session or Wayland?


This is probably an easy question, but in my session manager list at login, I have the following:

Code:
      Gnome on Xorg
      Gnome
      Plasma
      Gnome
I know the Plasma is X, and I know Gnome on Xorg is X, but why are there two other entries for Gnome? And how to tell whether they are Wayland or X?
 
Old 05-26-2018, 12:08 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
these entries are files in /etx/X11/Xsessions or some such location.
looking inside those files would reveal what is actually being started, or at least help along the way.

i thought you wanted to ask "how to find out programmatically during desktop session".
nevertheless, an interesting question.
 
Old 05-26-2018, 08:45 AM   #3
linuxuser7
Member
 
Registered: Apr 2018
Location: Ohio, USA
Distribution: openSUSE Tumbleweed, Ubuntu 18.04, Scientific Linux 7.5
Posts: 72

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
these entries are files in /etx/X11/Xsessions or some such location.
looking inside those files would reveal what is actually being started, or at least help along the way.

i thought you wanted to ask "how to find out programmatically during desktop session".
nevertheless, an interesting question.
I do want to find out how to tell during a desktop session also. I guess I wasn't clear and went off on the login screen, but yeah, I would like to know how to tell during a desktop session.

Last edited by linuxuser7; 05-26-2018 at 08:48 AM. Reason: adding info
 
Old 05-26-2018, 09:21 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
a web search goes a long way.
this search query gives interesting results.
most suggestions didn't work for me because i startx from the command line (my session is still reported as tty), put you can always
Code:
ps aux| grep -w X
or some such.
 
1 members found this post helpful.
Old 05-27-2018, 09:04 AM   #5
linuxuser7
Member
 
Registered: Apr 2018
Location: Ohio, USA
Distribution: openSUSE Tumbleweed, Ubuntu 18.04, Scientific Linux 7.5
Posts: 72

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
a web search goes a long way.
this search query gives interesting results.
most suggestions didn't work for me because i startx from the command line (my session is still reported as tty), put you can always
Code:
ps aux| grep -w X
or some such.
Thank you! That worked. I found a utility called inxi that works also.
 
  


Reply

Tags
gnome, session, session names, wayland, xorg



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Does gnome-flashback session use wayland? Do all gtk3 apps use wayland? rubankumars Linux - Desktop 1 08-08-2017 04:13 AM
LXer: Ubuntu 17.10 Will Have an Always Visible Dock, Wayland Session by Default LXer Syndicated Linux News 0 08-06-2017 11:03 PM
Wayland session not starting with NVidia card or Intel HD Graphics PhilanderingTeapot Fedora 1 07-23-2017 02:13 PM
Session key renegotiation if session lasts longer than configured (e.g. an hour) then session keys needs to be renegotiated. dakshinya Linux - Newbie 1 02-04-2016 04:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 09:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration