From 62ce9b9852dcf53b7a7bf86323d1f5fa8be75149 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Wed, 31 Dec 2008 23:53:30 -0600 Subject: [PATCH] If kde-config fails, then assume kde is not installed, and don't install the autostart file for kde. --- setup.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 4717f3b..65ee989 100755 --- a/setup.py +++ b/setup.py @@ -187,7 +187,12 @@ class configure(Command): else: self.kdedir = kdedir_candidate + '/share/autostart' except (OSError, ValueError): - pass # use our default + # If kde-config isn't present or returns an error, then we can + # assume that kde isn't installed on the user's system + self.no_install_kde = True + # If it turns out that the assumption above is wrong, then we'll + # do this instead: + #pass # use our default self.python = '/usr/bin/python'