Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8059599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:43:23+00:00 2026-06-05T09:43:23+00:00

How could I get name in Python of the display server that is used

  • 0

How could I get name in Python of the display server that is used in current Linux session?
I want to know if user uses Xorg or Wayland for example.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T09:43:24+00:00Added an answer on June 5, 2026 at 9:43 am

    You will need an Xlib Display pointer and a way to call ServerVendor() and possibly VendorRelease().

    With pygtk, you can use gdk_x11_display_get_xdisplay() to get a Display *.

    Update: I stand corrected: gtkmm has a binding to this function but pygtk apparently does not.

    The library still might provide access to the information returned by ServerVendor() (a quick search shows several calls but most of them seem to be used for compatibility workarounds).

    Even Python-Xlib does not seem to provide a binding to ServerVendor(). You may have to write your own module.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

With Python, I could get the name of the exception easily as follows. run
Could someone recommend a way to get page name from a url using JavaScript?
Was hoping I could get a bit of a hand on this login that
I've written a Python script that uses a package that I've created. I need
The Python documentation for unittest implies that the assertRaises() method can be used as
I'm using Python and I have some data that I want to put into
I could get the keyboard to work but on a UITextView but some how
Wondering if I could get some advice and direction on this following requirement: Need
hi im doing a loop so i could get dict of data, but since
Can anyone point me in the direction of how I could get a NUnit

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.