How to get window title on Linux? (Ubuntu/Xlib)

This page summarizes the projects mentioned and recommended in the original post on /r/csharp

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • xdotool

    fake keyboard/mouse input, window management, and more

  • I am trying to programmatically obtain a title of a process window I have PID of in Ubuntu with default configuration, or a clean Ubuntu installation if you will. I know this is possible on Linux, as I managed to get that information with xdotool, however I am trying to find a way to perform this task without an external program. That tool relies on xlib, a C solution for window management. I found an incomplete wrapper of it called X11.net and attempted to essentially translate this code to C# using it, resulting in the following:

  • X11.Net

    Xlib interface for .NET core/C#.

  • I am trying to programmatically obtain a title of a process window I have PID of in Ubuntu with default configuration, or a clean Ubuntu installation if you will. I know this is possible on Linux, as I managed to get that information with xdotool, however I am trying to find a way to perform this task without an external program. That tool relies on xlib, a C solution for window management. I found an incomplete wrapper of it called X11.net and attempted to essentially translate this code to C# using it, resulting in the following:

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts