[colobot] 60/390: Fix zenity version checking problems
Didier Raboud
odyx at moszumanska.debian.org
Fri Jun 12 14:21:28 UTC 2015
This is an automated email from the git hooks/post-receive script.
odyx pushed a commit to branch upstream/latest
in repository colobot.
commit 9f2d544b27171c89eceedbb83bfcb26f5702dadb
Author: Piotr Dziwinski <piotrdz at gmail.com>
Date: Sun Sep 21 21:28:59 2014 +0200
Fix zenity version checking problems
---
src/app/system_linux.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/app/system_linux.cpp b/src/app/system_linux.cpp
index 837c03e..5a39679 100644
--- a/src/app/system_linux.cpp
+++ b/src/app/system_linux.cpp
@@ -25,7 +25,7 @@
void CSystemUtilsLinux::Init()
{
m_zenityAvailable = true;
- if (system("zenity --version >& /dev/null") != 0)
+ if (system("zenity --version 1> /dev/null 2> /dev/null") != 0)
{
m_zenityAvailable = false;
GetLogger()->Warn("Zenity not available, will fallback to console users dialogs.\n");
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git
More information about the Pkg-games-commits
mailing list