Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Stefan Baur <newsgroups.mail2 <at> stefanbaur.de>
Subject: Re: Bug#48: heuler x2gothinclient multihead support breaks singlehead mode
Newsgroups: gmane.linux.terminal-server.x2go.devel
Date: Friday 12th October 2012 23:10:01 UTC (over 4 years ago)
/me wrote:

 > So, two suggestions:
 > 1) STDERR from xrandr  should go to /dev/null or to a log
 > file/syslog, so
 > -foreach (`DISPLAY=:0 LANG=C xrandr | grep ' connected ' | cut -d ' ' 
 > -f1`)
 > +foreach (`DISPLAY=:0 LANG=C xrandr 2>/dev/null | grep ' connected ' |
 > cut -d ' ' -f1`)

 > 2) A simple fix could be
 > if (1 < `DISPLAY=:0 LANG=C xrandr | grep ' connected ' | wc -l`)
 > {
 >     foreach (`DISPLAY=:0 LANG=C xrandr | grep ' connected ' | cut -d '
 > ' -f1`)
 >     {
 >     ...
 >     }
 > }
 > I'm sure there might be a more elegant solution that works within the
 > foreach loop, but "Hanc marginis exiguitas non caperet."

And indeed there is:
1) seems to be enough of a fix, so 2) isn't necessary any more.

-Stefan
 
CD: 3ms