OSDN Git Service
(root)
/
serene
/
serene-setup-wizard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa04122
)
.wine削除するかどうか
author
Nakajima
<fl.kouhei@gmail.com>
Wed, 1 May 2019 13:51:27 +0000
(22:51 +0900)
committer
Nakajima
<fl.kouhei@gmail.com>
Wed, 1 May 2019 13:51:27 +0000
(22:51 +0900)
usr/share/serene-setup-wizard/src/Items.py
patch
|
blob
|
history
diff --git
a/usr/share/serene-setup-wizard/src/Items.py
b/usr/share/serene-setup-wizard/src/Items.py
index
075f343
..
c533eed
100755
(executable)
--- a/
usr/share/serene-setup-wizard/src/Items.py
+++ b/
usr/share/serene-setup-wizard/src/Items.py
@@
-503,6
+503,21
@@
class Wine(Item) :
self.execute_src = self.PATH + "/../scripts/wineinstall.sh"
self.restore_src = self.PATH + "/../scripts/wineuninstall.sh"
+ def restore(self) :
+
+ super().restore()
+
+ while True :
+
+ ans = self.interface.yesnoback("Do you want to remove ~/.wine directory?")
+
+ if ans is not None :
+ break
+
+ if ans :
+
+ subprocess.call(["rm", "-r", "{}/.wine".format(os.environ["HOME"])])
+
def first_time(self) :