<!DOCTYPE html>
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Dear Debian GNOME and XFCE maintainers,</p>
    <p>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.</p>
    <p>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.</p>
    <p>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.</p>
    <h3>1. A fundamental functional problem</h3>
    <p>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.</p>
    <p>A typical scenario:</p>
    <ol start="1" class="MailOutline">
      <li>An application opens a Save As dialog.</li>
      <li>The user enters or modifies the desired filename.</li>
      <li>The user navigates to another directory.</li>
      <li>The filename entry is unexpectedly replaced, cleared or
        otherwise modified.</li>
    </ol>
    <p>Depending on the circumstances, this can cause documents to be
      saved under an unintended name or even result in accidental
      overwriting of existing files.</p>
    <p>This is unacceptable behaviour for a fundamental desktop
      component.</p>
    <p>A filename explicitly entered by the user must remain intact
      during directory navigation unless the user deliberately changes
      it.</p>
    <p>This is not merely an inconvenience. It is a data-integrity
      issue.</p>
    <h3>2. Existing bug reports and evidence</h3>
    <p>This behaviour has been reported repeatedly over many years.</p>
    <p><strong>GTK bug reports:</strong></p>
    <ul class="MailOutline">
      <li><a href="https://bugzilla.gnome.org/show_bug.cgi?id=419737"
          class="moz-txt-link-freetext">https://bugzilla.gnome.org/show_bug.cgi?id=419737</a></li>
      <li><a href="https://bugzilla.gnome.org/show_bug.cgi?id=434293"
          class="moz-txt-link-freetext">https://bugzilla.gnome.org/show_bug.cgi?id=434293</a></li>
      <li><a href="https://bugzilla.gnome.org/show_bug.cgi?id=742782"
          class="moz-txt-link-freetext">https://bugzilla.gnome.org/show_bug.cgi?id=742782</a></li>
      <li><a href="https://bugzilla.gnome.org/show_bug.cgi?id=499469"
          class="moz-txt-link-freetext">https://bugzilla.gnome.org/show_bug.cgi?id=499469</a></li>
    </ul>
    <p>Of particular relevance is bug 742782, which describes filename
      changes during navigation in Save mode.</p>
    <p><strong>XFCE discussions:</strong></p>
    <ul class="MailOutline">
      <li><a href="https://forum.xfce.org/viewtopic.php?id=19078"
          class="moz-txt-link-freetext">https://forum.xfce.org/viewtopic.php?id=19078</a></li>
      <li><a href="https://forum.xfce.org/viewtopic.php?id=17161"
          class="moz-txt-link-freetext">https://forum.xfce.org/viewtopic.php?id=17161</a></li>
    </ul>
    <p>These discussions illustrate why the problem is especially
      noticeable in XFCE. However, the underlying issue belongs to GTK,
      not XFCE.</p>
    <h3>3. An existing practical solution: Arch Linux</h3>
    <p>The Arch Linux community has already addressed shortcomings of
      the traditional GTK3 file chooser through the gtk3-classic
      project:</p>
    <p><a href="https://github.com/lah7/gtk3-classic"
        class="moz-txt-link-freetext">https://github.com/lah7/gtk3-classic</a></p>
    <p>The project maintains patches that restore traditional file
      chooser functionality and behaviour.</p>
    <p>It is distributed through the Arch User Repository as
      gtk3-classic. Additional XFCE-specific improvements are also
      available.</p>
    <p>This demonstrates that restoring the expected functionality is
      technically feasible without maintaining a completely separate GTK
      implementation.</p>
    <p>Arch Linux should therefore be considered a practical reference
      for a possible Debian implementation.</p>
    <h3>4. The problem must be addressed at its source: GTK itself</h3>
    <p>I would particularly like to emphasise that the solution should
      address the underlying GTK implementation.</p>
    <p>Introducing workarounds through XDG Desktop Portals is not an
      adequate substitute for fixing the GTK file chooser.</p>
    <p>Portals can provide an alternative file selection interface, but
      they do not correct the underlying behaviour of GTK itself.</p>
    <p>Furthermore:</p>
    <ul class="MailOutline">
      <li>Not every GTK application necessarily uses the same portal
        integration.</li>
      <li>Applications may use GTK's native file chooser directly.</li>
      <li>Portal availability and behaviour can vary between desktop
        environments.</li>
      <li>A portal-based workaround introduces additional dependencies
        and desktop-specific behaviour.</li>
    </ul>
    <p>The fundamental responsibility for correct filename handling
      belongs in the GTK file chooser implementation.</p>
    <p>Portals may remain a useful integration mechanism, but they
      should not be used to circumvent unresolved bugs in the underlying
      toolkit.</p>
    <h3>5. GTK is relevant beyond XFCE: the Qt versus GTK distinction</h3>
    <p>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.</p>
    <p>The Linux desktop ecosystem is not divided into mutually
      exclusive GTK and Qt application environments.</p>
    <p>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.</p>
    <p>Examples include browsers, image editors, development tools,
      document applications and numerous other everyday applications.</p>
    <p>It is practically impossible for a typical Linux desktop user to
      avoid GTK applications altogether.</p>
    <p>Consequently, a reliable GTK file chooser benefits users across
      the entire Linux desktop ecosystem, not just users of GNOME or
      XFCE.</p>
    <p>The objective should therefore be consistent and predictable file
      chooser functionality for GTK applications regardless of the
      desktop environment in which they run.</p>
    <h3>6. An important consideration: upstream GTK discussions have not
      produced a practical solution</h3>
    <p>There is another aspect worth addressing explicitly.</p>
    <p>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.</p>
    <p>The current behaviour appears to be closely connected to GTK's
      broader design philosophy and intentional interaction model.</p>
    <p>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.</p>
    <p>I would therefore strongly prefer that this proposal is not
      simply redirected to upstream GTK as another request to reconsider
      its design philosophy.</p>
    <p>The issue has been discussed for years. The practical need is
      clear, and an existing implementation approach is available.</p>
    <p>What Debian needs now is a workable solution.</p>
    <p>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.</p>
    <h3>7. Proposed approach for Debian</h3>
    <p>I propose that Debian evaluate the existing gtk3-classic patches
      and consider integrating the relevant functionality into its GTK3
      source package.</p>
    <p>Suggested steps:</p>
    <ol start="1" class="MailOutline">
      <li>Review the existing gtk3-classic patch set.</li>
      <li>Identify the patches addressing functional shortcomings in the
        file chooser.</li>
      <li>Review the relevant XFCE-specific improvements.</li>
      <li>Test filename preservation explicitly in Save mode.</li>
      <li>Test directory navigation using both mouse and keyboard.</li>
      <li>Verify that selecting files or directories does not
        unexpectedly modify the manually entered filename.</li>
      <li>Integrate the resulting changes into Debian's regular GTK3
        packaging and maintenance process.</li>
    </ol>
    <p>The solution should ideally be available as a maintained Debian
      implementation, rather than requiring users to install unofficial
      packages or maintain local GTK patches.</p>
    <p>A configurable option for users who prefer the traditional
      behaviour would also be acceptable, provided the essential
      functional problems are addressed.</p>
    <h3>8. Scope and long-term maintenance</h3>
    <p>I would like to see this addressed through cooperation between:</p>
    <ul class="MailOutline">
      <li>Debian GNOME Maintainers, responsible for GTK3 packaging.</li>
      <li>Debian XFCE Maintainers, representing one of the desktop
        environments most visibly affected.</li>
      <li>Other interested desktop communities, including KDE, whose
        users also depend on GTK applications.</li>
    </ul>
    <p>Relevant Debian resources:</p>
    <p>GTK3 packaging: <a
        href="https://salsa.debian.org/gnome-team/gtk3"
        class="moz-txt-link-freetext">https://salsa.debian.org/gnome-team/gtk3</a></p>
    <p>Debian XFCE mailing list: <a
        href="https://lists.debian.org/debian-xfce/"
        class="moz-txt-link-freetext">https://lists.debian.org/debian-xfce/</a></p>
    <p>The preferred outcome is a proper Debian-level solution
      maintained as part of the normal GTK3 packaging process.</p>
    <p>A solution that requires individual users to maintain their own
      patched GTK installation is not sustainable.</p>
    <p>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.</p>
    <h3>9. Expected outcome</h3>
    <p>The essential requirements are straightforward:</p>
    <ul class="MailOutline">
      <li>Explicitly entered filenames must be preserved during
        directory navigation.</li>
      <li>Navigating between directories must not silently alter the
        intended destination filename.</li>
      <li>Keyboard navigation must behave predictably.</li>
      <li>File selection must not unexpectedly overwrite manually
        entered filename information.</li>
      <li>Save operations must be reliable and must not cause unintended
        filenames or accidental overwrites.</li>
      <li>The solution must work for GTK applications independently of
        the desktop environment.</li>
    </ul>
    <p>These are basic requirements for trustworthy desktop software,
      not optional interface preferences.</p>
    <p>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.</p>
    <p>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.</p>
    <p>Thank you for your consideration.</p>
    <p>Best regards</p>
    <p>Bas</p>
  </body>
</html>