Maybe checking existence of dpkg with which and return value comparison might be even better.
Additionally, under Unix/Linux only line feed (LF) is used to start a new line but the steam.desktop file contains CR+LF (Windows) to indicate new lines. Please run sed -i "s/\r//g" steam.desktop in order to fix this.
@slouken "Scripts should use /usr/bin/env python, see http://stackoverflow.com/questions/1352922/why-is-usr-bin-env-python-supposedly-more-correct-than-just-usr-bin-pyt"
NO
need use /usr/bin/env python2
some distros use python3. Steam GUI use python2
┌─┤[sl1pkn07]|[sL1pKn07]|[/]|
└───╼ env python
Python 3.3.0 (default, Dec 22 2012, 21:02:07)
[GCC 4.7.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
┌─┤[sl1pkn07]|[sL1pKn07]|[/]|
└───╼ env python2
Python 2.7.3 (default, Dec 22 2012, 21:14:12)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
┌─┤[sl1pkn07]|[sL1pKn07]|[/]|
└───╼ env python3
Python 3.3.0 (default, Dec 22 2012, 21:02:07)
[GCC 4.7.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
This is fixed for a future update, thanks!
Nothing extracted yet.
Please add to following patch to /usr/bin/steamdeps: https://gist.github.com/4517832 due to the following issues:
Scripts should use
/usr/bin/env python, see http://stackoverflow.com/questions/1352922/why-is-usr-bin-env-python-supposedly-more-correct-than-just-usr-bin-pytSteamdeps failes on my machine due to inconsistent use of sys.argv in the script.
Steamdeps should check if dpkg exists and print a useful error message if not on distributions other than debian/ubuntu based ones.