X11 protocol cannot connect to server

Asked by jackhenderson

After some brutal hunting for all required packages I finally resolved all dependencies to get Gscrot installed under OpenSuse (rpm based distro). The perl-X11-Protocol I couldn't find in any package repo, so I pulled down the latest noarch package from http://search.cpan.org/dist/X11-Protocol/

gscrot appears to launch correctly, but during the launch process it will finally error out with this message:

Connection to server failed -- (version 11.0)
No protocol specified
 at ./gscrot line 124

Checking line 124:
my $x = X11::Protocol->new( $ENV{ 'DISPLAY' } );

As a shot in the dark I tried, "xhost +localhost" to allow connections from localhost. But no dice.

Any guesses?

Question information

English Edit question
Shutter Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Mario Kemper (Romario) (mario-kemper) said :

Thank you very much for your patience with GScrot.
I am sure there will be a .rpm package as well in the future but due to limited resources i cannot promise anything.

It was never tested on any other distro than ubuntu and arch linux by now but i am sure we will get this to work. I'll just grab a copy of the latest OpenSuse and test it out...

Revision history for this message
Mario Kemper (Romario) (mario-kemper) said :

Hm, using OpenSuse 11.0 everything works like a charm ( the package installation is brutal, indeed ;-) ).

Could you please provide the output of "printenv" to take a look at your environment variables?

Can you help with this problem?

Provide an answer of your own, or ask jackhenderson for more information if necessary.

To post a message you must log in.