|
|
@ -17,8 +17,8 @@
|
|
|
|
###########################################################################
|
|
|
|
###########################################################################
|
|
|
|
|
|
|
|
|
|
|
|
from qt import *
|
|
|
|
from qt import *
|
|
|
|
from kdecore import *
|
|
|
|
from tdecore import *
|
|
|
|
from kdeui import *
|
|
|
|
from tdeui import *
|
|
|
|
from kfile import *
|
|
|
|
from kfile import *
|
|
|
|
from kio import *
|
|
|
|
from kio import *
|
|
|
|
#import string
|
|
|
|
#import string
|
|
|
@ -284,14 +284,14 @@ class WineConfigApp(programbase):
|
|
|
|
def InstallWine(self):
|
|
|
|
def InstallWine(self):
|
|
|
|
""" Allows the user to enable the proper repositories and
|
|
|
|
""" Allows the user to enable the proper repositories and
|
|
|
|
install wine.
|
|
|
|
install wine.
|
|
|
|
Currently Kubuntu specific, requires kdesudo, adept_batch
|
|
|
|
Currently Kubuntu specific, requires tdesudo, adept_batch
|
|
|
|
and software-properties-kde """
|
|
|
|
and software-properties-kde """
|
|
|
|
if not isroot:
|
|
|
|
if not isroot:
|
|
|
|
if os.system("kdesudo \"software-properties-kde --enable-component universe\""):
|
|
|
|
if os.system("tdesudo \"software-properties-kde --enable-component universe\""):
|
|
|
|
KMessageBox.error(self, i18n("There was a problem running " + \
|
|
|
|
KMessageBox.error(self, i18n("There was a problem running " + \
|
|
|
|
"software-properties-kde. Make sure " + \
|
|
|
|
"software-properties-kde. Make sure " + \
|
|
|
|
"software-properties-kde is installed."))
|
|
|
|
"software-properties-kde is installed."))
|
|
|
|
elif os.system("kdesudo \"adept_batch install wine\""):
|
|
|
|
elif os.system("tdesudo \"adept_batch install wine\""):
|
|
|
|
KMessageBox.error(self, i18n("There was a problem running " + \
|
|
|
|
KMessageBox.error(self, i18n("There was a problem running " + \
|
|
|
|
"adept_batch. Make sure " + \
|
|
|
|
"adept_batch. Make sure " + \
|
|
|
|
"Adept is installed."))
|
|
|
|
"Adept is installed."))
|
|
|
|