Skip to content

Commit dcc7a2f

Browse files
authored
Update main_window.py
1 parent bffe48d commit dcc7a2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main_window.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,8 @@ def __init__(self, *args, **kwargs):
197197
self.pBox.append(self.label_sorry)
198198

199199
if snap:
200-
result = subprocess.run(["snapctl", "is-connected", "dot-config"], stdout=subprocess.PIPE)
201-
202200
# If plug is not connected, display error message
203-
if result.returncode != 0:
201+
if not os.path.exists(f"{DATA}/first-run"):
204202
self.set_child(self.pBox)
205203
self.headerbar.set_title_widget(None)
206204
self.pBox.set_margin_start(90)
@@ -225,6 +223,8 @@ def __init__(self, *args, **kwargs):
225223
self.cmdLabel.set_justify(Gtk.Justification.CENTER)
226224
self.cmdLabel.set_wrap(True)
227225
self.pBox.append(self.cmdLabel)
226+
227+
os.system(f"echo > {DATA}/first-run")
228228

229229
# Show main layout
230230
def save_desktop(self):

0 commit comments

Comments
 (0)