Debian GTK3: A practical solution for reliable file chooser functionality

bas.debian.12 at gmail.com bas.debian.12 at gmail.com
Thu Nov 26 10:05:33 GMT 2026


Dear Debian GNOME and XFCE maintainers,

I would like to raise an issue concerning the GTK3 file chooser in 
Debian and propose a practical, sustainable solution at the GTK toolkit 
level.

Although the problem is particularly apparent to users of Debian XFCE, 
it is by no means limited to XFCE. Users of other desktop environments, 
including KDE Plasma, are affected whenever they use GTK applications.

This is not a request for cosmetic changes, alternative colours, themes 
or a nostalgic user interface. It concerns essential functionality, 
predictable file management and the integrity of user data.


      1. A fundamental functional problem

The GTK file chooser exhibits behaviour that can cause an explicitly 
entered filename to be unexpectedly modified or replaced when navigating 
between directories in a Save (As) dialog.

A typical scenario:

 1. An application opens a Save As dialog.
 2. The user enters or modifies the desired filename.
 3. The user navigates to another directory.
 4. The filename entry is unexpectedly replaced, cleared or otherwise
    modified.

Depending on the circumstances, this can cause documents to be saved 
under an unintended name or even result in accidental overwriting of 
existing files.

This is unacceptable behaviour for a fundamental desktop component.

A filename explicitly entered by the user must remain intact during 
directory navigation unless the user deliberately changes it.

This is not merely an inconvenience. It is a data-integrity issue.


      2. Existing bug reports and evidence

This behaviour has been reported repeatedly over many years.

*GTK bug reports:*

  * https://bugzilla.gnome.org/show_bug.cgi?id=419737
  * https://bugzilla.gnome.org/show_bug.cgi?id=434293
  * https://bugzilla.gnome.org/show_bug.cgi?id=742782
  * https://bugzilla.gnome.org/show_bug.cgi?id=499469

Of particular relevance is bug 742782, which describes filename changes 
during navigation in Save mode.

*XFCE discussions:*

  * https://forum.xfce.org/viewtopic.php?id=19078
  * https://forum.xfce.org/viewtopic.php?id=17161

These discussions illustrate why the problem is especially noticeable in 
XFCE. However, the underlying issue belongs to GTK, not XFCE.


      3. An existing practical solution: Arch Linux

The Arch Linux community has already addressed shortcomings of the 
traditional GTK3 file chooser through the gtk3-classic project:

https://github.com/lah7/gtk3-classic

The project maintains patches that restore traditional file chooser 
functionality and behaviour.

It is distributed through the Arch User Repository as gtk3-classic. 
Additional XFCE-specific improvements are also available.

This demonstrates that restoring the expected functionality is 
technically feasible without maintaining a completely separate GTK 
implementation.

Arch Linux should therefore be considered a practical reference for a 
possible Debian implementation.


      4. The problem must be addressed at its source: GTK itself

I would particularly like to emphasise that the solution should address 
the underlying GTK implementation.

Introducing workarounds through XDG Desktop Portals is not an adequate 
substitute for fixing the GTK file chooser.

Portals can provide an alternative file selection interface, but they do 
not correct the underlying behaviour of GTK itself.

Furthermore:

  * Not every GTK application necessarily uses the same portal integration.
  * Applications may use GTK's native file chooser directly.
  * Portal availability and behaviour can vary between desktop environments.
  * A portal-based workaround introduces additional dependencies and
    desktop-specific behaviour.

The fundamental responsibility for correct filename handling belongs in 
the GTK file chooser implementation.

Portals may remain a useful integration mechanism, but they should not 
be used to circumvent unresolved bugs in the underlying toolkit.


      5. GTK is relevant beyond XFCE: the Qt versus GTK distinction

KDE Plasma is primarily based on Qt, whereas XFCE is primarily based on 
GTK. However, this distinction does not mean that GTK problems are 
irrelevant to KDE users.

The Linux desktop ecosystem is not divided into mutually exclusive GTK 
and Qt application environments.

GTK applications are widely used across desktop environments, including 
KDE Plasma. Users routinely install and run applications built with 
different toolkits, regardless of their desktop environment.

Examples include browsers, image editors, development tools, document 
applications and numerous other everyday applications.

It is practically impossible for a typical Linux desktop user to avoid 
GTK applications altogether.

Consequently, a reliable GTK file chooser benefits users across the 
entire Linux desktop ecosystem, not just users of GNOME or XFCE.

The objective should therefore be consistent and predictable file 
chooser functionality for GTK applications regardless of the desktop 
environment in which they run.


      6. An important consideration: upstream GTK discussions have not
      produced a practical solution

There is another aspect worth addressing explicitly.

Over the past years, attempts to raise these concerns and persuade GTK 
upstream to reconsider the relevant file chooser behaviour have not 
resulted in a satisfactory practical solution.

The current behaviour appears to be closely connected to GTK's broader 
design philosophy and intentional interaction model.

I respect the right of upstream GTK developers to make their own design 
decisions. However, those decisions should not prevent distributions 
from providing their users with a practical and reliable alternative.

I would therefore strongly prefer that this proposal is not simply 
redirected to upstream GTK as another request to reconsider its design 
philosophy.

The issue has been discussed for years. The practical need is clear, and 
an existing implementation approach is available.

What Debian needs now is a workable solution.

Debian is a distribution with its own packaging policies, maintenance 
responsibilities and user requirements. It should be possible to 
maintain a suitable patch set in Debian without requiring upstream GTK 
to adopt a different design philosophy.


      7. Proposed approach for Debian

I propose that Debian evaluate the existing gtk3-classic patches and 
consider integrating the relevant functionality into its GTK3 source 
package.

Suggested steps:

 1. Review the existing gtk3-classic patch set.
 2. Identify the patches addressing functional shortcomings in the file
    chooser.
 3. Review the relevant XFCE-specific improvements.
 4. Test filename preservation explicitly in Save mode.
 5. Test directory navigation using both mouse and keyboard.
 6. Verify that selecting files or directories does not unexpectedly
    modify the manually entered filename.
 7. Integrate the resulting changes into Debian's regular GTK3 packaging
    and maintenance process.

The solution should ideally be available as a maintained Debian 
implementation, rather than requiring users to install unofficial 
packages or maintain local GTK patches.

A configurable option for users who prefer the traditional behaviour 
would also be acceptable, provided the essential functional problems are 
addressed.


      8. Scope and long-term maintenance

I would like to see this addressed through cooperation between:

  * Debian GNOME Maintainers, responsible for GTK3 packaging.
  * Debian XFCE Maintainers, representing one of the desktop
    environments most visibly affected.
  * Other interested desktop communities, including KDE, whose users
    also depend on GTK applications.

Relevant Debian resources:

GTK3 packaging: https://salsa.debian.org/gnome-team/gtk3

Debian XFCE mailing list: https://lists.debian.org/debian-xfce/

The preferred outcome is a proper Debian-level solution maintained as 
part of the normal GTK3 packaging process.

A solution that requires individual users to maintain their own patched 
GTK installation is not sustainable.

Arch Linux has demonstrated that restoring traditional GTK3 file chooser 
functionality is feasible. Debian users should have access to the same 
practical improvements through Debian's normal package maintenance 
infrastructure.


      9. Expected outcome

The essential requirements are straightforward:

  * Explicitly entered filenames must be preserved during directory
    navigation.
  * Navigating between directories must not silently alter the intended
    destination filename.
  * Keyboard navigation must behave predictably.
  * File selection must not unexpectedly overwrite manually entered
    filename information.
  * Save operations must be reliable and must not cause unintended
    filenames or accidental overwrites.
  * The solution must work for GTK applications independently of the
    desktop environment.

These are basic requirements for trustworthy desktop software, not 
optional interface preferences.

I would appreciate a technical assessment of the existing gtk3-classic 
patches and consideration of integrating the relevant improvements 
directly into Debian's GTK3 packaging.

Most importantly, I hope this can lead to a practical, maintainable 
solution rather than another round of upstream design discussions 
without a tangible result for Debian users.

Thank you for your consideration.

Best regards

Bas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-gnome-maintainers/attachments/20261126/0bcb7ada/attachment-0001.htm>


More information about the pkg-gnome-maintainers mailing list