<div dir="ltr">Package: libgtk-3-bin<br>X-Debbugs-Cc: <a href="mailto:cliffjkilby@gmail.com">cliffjkilby@gmail.com</a><br>Version: 3.24.49-3<br>Severity: normal<br><br>Dear Maintainer,<br><br>I wanted to open a file in Geany (uses GTK)<br>Ctrl+O Ctrl+V shows an error "Operation not supported"<br><div>LibreOffice (also using GTK) has the same error.</div><div>As a workaround, Thunar accepts the paste, and opens the .txt file in Geany per default handler, but only after manually focusing on the Location bar. Attempting to paste a path directly into Thunar without manually focusing on the Location bar also results in an error "There is nothing on the clipboard to paste".</div>   <br>This functionality seems to have been intended to work, as <a href="https://github.com/GNOME/gtk/releases/tag/3.24.49">https://github.com/GNOME/gtk/releases/tag/3.24.49</a> has<br>gtkfilechooserwidget.c@8342<br>  /**<br>   * GtkFileChooserWidget::location-popup-on-paste:<br>   * @widget: the object which received the signal<br>   *<br>   * The ::location-popup-on-paste signal is a [keybinding signal][GtkBindingSignal]<br>   * which gets emitted when the user asks for it.<br>   *<br>   * This is used to make the file chooser show a "Location" prompt when the user<br>   * pastes into a #GtkFileChooserWidget.<br>   *<br>   * The default binding for this signal is `Control + V`.<br>   */<br>  signals[LOCATION_POPUP_ON_PASTE] =<br>    g_signal_new_class_handler (I_("location-popup-on-paste"),<br>                                G_OBJECT_CLASS_TYPE (class),<br>                                G_SIGNAL_RUN_FIRST | G_SIGNAL_ACTION,<br>                                G_CALLBACK (location_popup_on_paste_handler),<br>                                NULL, NULL,<br>                                NULL,<br>                                G_TYPE_NONE, 0);<br><br>This would not be a problem, if the GTK SETTINGS_KEY_LOCATION_MODE was not broken.<br>In <a href="https://github.com/GNOME/gtk/releases/tag/3.12.2">https://github.com/GNOME/gtk/releases/tag/3.12.2</a> there is:<br>gtkfilechooserwidget.c@3251<br><div>  location_mode = g_settings_get_enum (settings, SETTINGS_KEY_LOCATION_MODE);</div><div>gtkfilechooserwidget.c@3260</div><div>  location_mode_set (impl, location_mode, TRUE);</div><div><br></div>By <a href="https://github.com/GNOME/gtk/releases/tag/3.13.1">https://github.com/GNOME/gtk/releases/tag/3.13.1</a><br>gtkfilechooserwidget.c no longer has a g_settings_get_enum for SETTINGS_KEY_LOCATION_MODE, but is still saving the setting<br>gtkfilechooserwidget.c@3058<br>  g_settings_set_enum (settings, SETTINGS_KEY_LOCATION_MODE, priv->location_mode);<br><div><br></div><div>This leads me to believe that between 3.12.2 which was released, and 3.13.1 which was not upstream broke this, because <a href="https://github.com/GNOME/gtk/releases/tag/3.24.49">https://github.com/GNOME/gtk/releases/tag/3.24.49</a> is still setting the SETTINGS_KEY_LOCATION_MODE even though nothing has read it in 10 years.</div>gtkfilechooserwidget.c@3940<br>  g_settings_set_enum (settings, SETTINGS_KEY_LOCATION_MODE, priv->location_mode);<br><br>Acceptable solutions:<br>Ctrl+v with a file path in a Gtk.FileChooser opens the path.<br><div>Restore 3.12 settings management for gtkfilechooserwidget.c which upstream broke and never fixed.</div><div><br></div><div>Present workarounds:</div><div>Open through Thunar, after manually focusing the Location bar.</div><div>Open in app with Gtk.FileChooser using Ctrl+O Ctrl+L Ctrl+V</div><br><br>-- System Information:<br>Debian Release: 13.7<br>  APT prefers stable<br>  APT policy: (990, 'stable'), (500, 'stable-updates'), (500, 'stable-security'), (100, 'testing')<br>Architecture: amd64 (x86_64)<br>Foreign Architectures: i386<br><br>Kernel: Linux 6.12.113+deb13-amd64 (SMP w/8 CPU threads; PREEMPT)<br>Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set<br>Shell: /bin/sh linked to /usr/bin/dash<br>Init: systemd (via /run/systemd/system)<br>LSM: SELinux: enabled - Mode: Enforcing - Policy name: default<br><br>Versions of packages libgtk-3-bin depends on:<br>ii  gtk-update-icon-cache  4.18.6+ds-2<br>ii  libc6                  2.43-7<br>ii  libcairo2              1.18.4-1+b1<br>ii  libgdk-pixbuf-2.0-0    2.42.12+dfsg-4+deb13u1<br>ii  libglib2.0-0t64        2.84.4-3~deb13u5<br>ii  libgtk-3-0t64          3.24.49-3<br>ii  libgtk-3-common        3.24.49-3<br><br>libgtk-3-bin recommends no packages.<br><br>libgtk-3-bin suggests no packages.<br><br>-- no debconf information<br><br></div>