From bd6dba23703a2c98613819dc90e50f2b0c6b164d Mon Sep 17 00:00:00 2001 From: Brent Picasso Date: Wed, 23 Oct 2024 07:38:34 -0700 Subject: [PATCH] remove unsupported options for Zenity --- 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]