https://bugs.kde.org/show_bug.cgi?id=525815

            Bug ID: 525815
           Summary: Parentless file picker close the application in snap
                    environment despite setQuitOnLastWindowClosed( false)
    Classification: Frameworks and Libraries
           Product: frameworks-kio
      Version First 6.27.0
       Reported In:
          Platform: Snap
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Open/save dialogs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

Created attachment 196213
  --> https://bugs.kde.org/attachment.cgi?id=196213&action=edit
complete sample code

```
#include <QApplication>
#include <QFileDialog>
#include <QDebug>
#include <QTimer>

int main(int argc, char** argv) {
    QApplication app(argc, argv);
    app.setQuitOnLastWindowClosed( false );
    QTimer::singleShot(2000, &app, [](){
        QFileDialog::getOpenFileUrls( nullptr, "plop" );
    });
    app.exec();
    qWarning() << "Oops, I did it again";
}
```

when run directly in a desktop environment, the main loop continues to run
after the QFileDialog closes, when run in snap the application loop quit when
the file picker is closed

full example enclosed.  to build and run the snap package

```
snapcraft pack
snap install --dangerous  ./mytest_daily_amd64.snap
snap run mytest
```

# test environment 

Desktop tests where run on Kubuntu 24.04 (Wayland and X11) 
Snap test ran on the the same computer, kf6 snap package is 

```
pierre@zoidberg % snap info kf6-core24                                          
name:      kf6-core24
summary:   KDE Frameworks 6
publisher: KDE✓
store-url: https://snapcraft.io/kf6-core24
license:   unset
description: |
  KDE Frameworks are addons and useful extensions to Qt
snap-id:      kvNmVu4h6kL6NMJjXqPyvG3K3EhDO1S9
tracking:     latest/stable
refresh-date: 58 days ago, at 16:34 CEST
channels:
  latest/stable:    6.11.1-6.27.0-6.7.0-26.04.2 2026-07-18 (64) 1.75GB -
  latest/candidate: ↑                                                  
  latest/beta:      6.11.1-6.27.0-6.7.0-26.04.2 2026-07-18 (64) 1.75GB -
  latest/edge:      ↑                                                  
installed:          6.11.1-6.27.0-6.7.0-26.04.2            (64) 1.75GB -
```

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to