From f52b36b1625452d7a54533b9514dc632090277c9 Mon Sep 17 00:00:00 2001 From: Brent Picasso Date: Sat, 26 Oct 2024 06:44:23 -0700 Subject: [PATCH] remove unsupported options for Zenity (#822) --- plyer/platforms/linux/filechooser.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/plyer/platforms/linux/filechooser.py b/plyer/platforms/linux/filechooser.py index e4ac8570..5c5aa602 100644 --- a/plyer/platforms/linux/filechooser.py +++ b/plyer/platforms/linux/filechooser.py @@ -106,8 +106,7 @@ class ZenityFileChooser(SubprocessFileChooser): def _gen_cmdline(self): cmdline = [ which(self.executable), - "--file-selection", - "--confirm-overwrite" + "--file-selection" ] if self.multiple: cmdline += ["--multiple"] @@ -117,10 +116,6 @@ def _gen_cmdline(self): cmdline += ["--directory"] if self.path: cmdline += ["--filename", self.path] - if self.title: - cmdline += ["--name", self.title] - if self.icon: - cmdline += ["--window-icon", self.icon] for f in self.filters: if isinstance(f, str): cmdline += ["--file-filter", f]