Use the correct gio trash command
This commit is contained in:
heliguy
2023-09-02 17:37:34 -04:00
parent 042923a8e3
commit d8e25ebea5
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: flattool-gui\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-09-02 16:25-0400\n"
"POT-Creation-Date: 2023-09-02 17:37-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

View File

@@ -233,7 +233,7 @@ class FlattoolGuiWindow(Adw.ApplicationWindow):
for i in range(len(selected_rows)):
path = f"{self.user_data_path}{selected_rows[i]}"
try:
subprocess.run(['flatpak-spawn', '--host', 'gio', 'remove', path], capture_output=True, check=True)
subprocess.run(['flatpak-spawn', '--host', 'gio', 'trash', path], capture_output=False, check=True)
except:
orphans_toast_overlay.add_toast(Adw.Toast.new(_("Can't trash {}").format(selected_rows[i])))
show_success = False