Comment 39 for bug 1094218

Revision history for this message
Gerlando Lo Savio (gerlos) wrote : Re: lsb_release crashed with IOError in getstatusoutput(): [Errno 10] No child processes

I can confirm that Cedric's solution worked for me. But I'd prefer not hard coding the distribution name in the script.

So this is how I changed /opt/teamviewer8/tv_bin/script/tvw_main, it should work even after you upgrade your distribution to a new release, as long /etc/lsb_release file is upgraded fine:

function LogStartupInfo()
  exec 2>&1 # redirect stderr

  echo "TeamViewer: $TV_VERSION"
  echo "Profile: $HOME ($LOGNAME)"
  echo "Desktop: $DESKTOP_SESSION"

  if [ -x "$(type -p lsb_release)" ] ; then # log information about the Linu
x distribution
    #lsb_release -a
    make_path "$WINEPREFIX/drive_c"
    cat /etc/lsb-release | grep DESCRIPTION | cut -f2 -d= | sed 's/\"//g' > "$WINEPREFIX/drive_c/distrelease"
    echo /etc/*-release
    for rfile in /etc/*-release ; do # echo the head of the first val
id *-release file
      if [ -e "$rfile" ] ; then
        cat $rfile | head -n 10