Get The Display Name of Xorg The Correct Way?

I have to get the display_name variable of an Xorg Display struct. (eg. display->display_name).

Right now I'm compiling with the XLIB_ILLEGAL_ACCESS define, which gives me direct access to the struct.

Is there a proper way to get this?


You probably need DisplayString(dpy) - see xdpyinfo source.

Need Your Help

os.rename() time in Python


I'm building a script that renames some files to determine if the file is locked or not. The script does the following on every file in a given directory recursively.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.