We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34de849 commit fe0c565Copy full SHA for fe0c565
system-info
@@ -661,14 +661,9 @@ function GetGraphicsEnv()
661
if [ $DESKTOP_SESSION ]
662
then
663
echo -e "The Current Desktop Session is: $DESKTOP_SESSION "
664
- xmode=$(xrandr -q &> /dev/null | egrep --color=never -e 'Screen' -e 'connected ')
665
- if [ $? -eq 1 ]
666
- then
667
- echo -e "'xrandr' could not determine resolution."
668
- else
669
- echo -e "The Current X Desktop Information Details from 'xrandr' are: "
670
- echo -e "$xmode"
671
- fi
+ xmode=$(xrandr -q 2> /dev/null | egrep --color=never -e 'Screen' -e 'connected ')
+ echo -e "The Current X Desktop Information Details from 'xrandr' are: "
+ echo -e "$xmode"
672
else
673
echo -e "The Current Desktop Session is: <Not Populated> "
674
fi
0 commit comments