Bob -- ...and then Bob Williams said... % % I have a bash script to generate the sig featured below. ... % plasma=`kcmshell5 -v | awk '{print $2}'` ... % % When run from my user command line it works correctly, but when I run it % from my crontab, it fails to get the plasma version. So the last line of ... % QXcbConnection: Could not connect to display % % I'm guessing that cron is not running in graphical environment, but not % sure why that would make a difference. Because kcmshell5 is part of KDE is a graphic environment. You wouldn't be able to run xterm without a $DISPLAY, either. % % Can anyone suggest a solution/workaround, please? You *might* be able to fake it by passing -display :0 on the command line, but almost certainly only if you're logged in at the time if it will work at all. You could try looking for a command-line arg that says "just dump your info and don't care about a display", or you could install a null-display that tools like this could use. You could also run strings on the binary and look for the info, since it's probably in there as plain text. Or you could use a Plasma/kcmshell version file (eg $HOME/.kcmshell5-v or such) to build your .sig and then update that file via your .profile (if you have $DISPLAY set, of course) to keep it current. For that matter, though, how often does your desktop config change? I'd think that that one line is pretty constant and that you could update it only every blue moon as part of your "let's install something new" procedure. YMMV :-) HTH & HAND :-D -- David T-G See http://justpickone.org/davidtg/email/ See http://justpickone.org/davidtg/tofu.txt -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org