Error: Can't open display: (null)

1,341 views
Skip to first unread message

Andrey Sarapulov

unread,
Oct 27, 2014, 5:55:15 PM10/27/14
to xdotoo...@googlegroups.com
Hi, guys,

is xdotool still supported by this email?

I am running latest Yosemite, but constantly getting "Error: Can't open display: (null)".

I have installed ruby, x-code + command line, but can't figure out why this doesn't work.

******
MacBook-Air:~ XXXXXX$ xdotool getmouselocation

Error: Can't open display: (null)

Segmentation fault: 11

******

-AS

Jordan Sissel

unread,
Oct 27, 2014, 6:05:09 PM10/27/14
to AndreyS...@gmail.com, xdotool-users
Is XQuartz running? Do you have $DISPLAY set in your environment?

xdotool only works in X11 applications, so you can't control native Mac apps with it.

-Jordan

--
You received this message because you are subscribed to the Google Groups "xdotool-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xdotool-user...@googlegroups.com.
To post to this group, send email to xdotoo...@googlegroups.com.
Visit this group at http://groups.google.com/group/xdotool-users.
For more options, visit https://groups.google.com/d/optout.

Andrey Sarapulov

unread,
Dec 7, 2014, 7:58:50 AM12/7/14
to Jordan Sissel, xdotool-users
Hi Jordan,

Installed XQuartz and things seem started to work. Below i ran the same command and seem received mouse location.

Thanks for your help! Will play more with xdotool later.

MacBook-Air:~ XXXXXX $ xdotool getmouselocation

Warning: XTEST extension unavailable on '(null)'. Some functionality may be disabled; See 'man xdotool' for more info.

x:720 y:438 screen:0 window:273


-AS

Andrey Sarapulov

unread,
Dec 7, 2014, 11:33:12 AM12/7/14
to Jordan Sissel, xdotool-users
Well, looks like XTEST issue doesn't really help in using the tool. Where i can enable this one?

bash-3.2$ xdotool search "Mozilla Firefox"
Warning: XTEST extension unavailable on '(null)'. Some functionality may be disabled; See 'man xdotool' for more info.

-AS
Reply all
Reply to author
Forward
0 new messages