$OpenBSD: patch-common_config_py,v 1.4 2012/05/29 10:21:56 ajacoutot Exp $
--- common/config.py.orig	Wed Jan  5 21:08:29 2011
+++ common/config.py	Tue May 29 12:20:17 2012
@@ -29,13 +29,13 @@ import logger
 
 _=gettext.gettext
 
-gettext.bindtextdomain( 'backintime', '/usr/share/locale' )
+gettext.bindtextdomain( 'backintime', '${PREFIX}/share/locale' )
 gettext.textdomain( 'backintime' )
 
 
 class Config( configfile.ConfigFileWithProfiles ):
 	APP_NAME = 'Back In Time'
-	VERSION = '1.0.7'
+	VERSION = '1.0.8'
 	COPYRIGHT = 'Copyright (c) 2008-2009 Oprea Dan, Bart de Koning, Richard Bailey'
 	CONFIG_VERSION = 5
 
@@ -77,11 +77,11 @@ class Config( configfile.ConfigFileWithProfiles ):
 		configfile.ConfigFileWithProfiles.__init__( self, _('Main profile') )
 
 		self._APP_PATH =  os.path.dirname( os.path.abspath( os.path.dirname( __file__ ) ) )
-		self._DOC_PATH = '/usr/share/doc/backintime'
+		self._DOC_PATH = '${PREFIX}/share/doc/backintime'
 		if os.path.exists( os.path.join( self._APP_PATH, 'LICENSE' ) ):
 			self._DOC_PATH = self._APP_PATH
 
-		self._GLOBAL_CONFIG_PATH = '/etc/backintime/config'
+		self._GLOBAL_CONFIG_PATH = '${SYSCONFDIR}/backintime/config'
 
 		HOME_FOLDER = os.path.expanduser( '~' )
 		self._LOCAL_DATA_FOLDER = os.path.join( os.getenv( 'XDG_DATA_HOME', '$HOME/.local/share' ).replace( '$HOME', HOME_FOLDER ), 'backintime' )
@@ -587,18 +587,6 @@ class Config( configfile.ConfigFileWithProfiles ):
 	def set_run_nice_from_cron_enabled( self, value, profile_id = None ):
 		self.set_profile_bool_value( 'snapshots.cron.nice', value, profile_id )
 
-	def is_run_ionice_from_cron_enabled( self, profile_id = None ):
-		return self.get_profile_bool_value( 'snapshots.cron.ionice', True, profile_id )
-
-	def set_run_ionice_from_cron_enabled( self, value, profile_id = None ):
-		self.set_profile_bool_value( 'snapshots.cron.ionice', value, profile_id )
-
-	def is_run_ionice_from_user_enabled( self, profile_id = None ):
-		return self.get_profile_bool_value( 'snapshots.user_backup.ionice', False, profile_id )
-
-	def set_run_ionice_from_user_enabled( self, value, profile_id = None ):
-		self.set_profile_bool_value( 'snapshots.user_backup.ionice', value, profile_id )
-
 	def is_no_on_battery_enabled( self, profile_id = None ):
 		return self.get_profile_bool_value( 'snapshots.no_on_battery', False, profile_id )
 
@@ -820,9 +808,7 @@ class Config( configfile.ConfigFileWithProfiles ):
 				profile=''
 				if '1' != profile_id:
 					profile = "--profile-id %s" % profile_id
-				cmd = "/usr/bin/backintime %s --backup-job >/dev/null 2>&1" % profile
-				if self.is_run_ionice_from_cron_enabled():
-					cmd = 'ionice -c2 -n7 ' + cmd
+				cmd = "${PREFIX}/bin/backintime %s --backup-job >/dev/null 2>&1" % profile
 				if self.is_run_nice_from_cron_enabled( profile_id ):
 					cmd = 'nice -n 19 ' + cmd
 				cron_line = cron_line.replace( '{cmd}', cmd )
