OSDN Git Service

.wine削除するかどうか
authorNakajima <fl.kouhei@gmail.com>
Wed, 1 May 2019 13:51:27 +0000 (22:51 +0900)
committerNakajima <fl.kouhei@gmail.com>
Wed, 1 May 2019 13:51:27 +0000 (22:51 +0900)
usr/share/serene-setup-wizard/src/Items.py

index 075f343..c533eed 100755 (executable)
@@ -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) :