Hi Hope you’ll are doing fine,
I encountered a snap app-specific issue with an application I am packaging.
First: My app wants to open a file and perform some kind of processing on it, When the user clicks the open file button a dialog pops up using Qt’s QFileDialog, the dialog opens in the background and do not get’s user’s focus. This happens only when the application is packaged in snap package format. This behavior is also not consistent, The Save file Dialog with the same QFileDialog class gets the user’s focus perfectly fine. (I noticed two different types of GTK file dialogs with different behavior are actually opening on both cases see attachments below)
Second: When the user selects a file they want to open in my app, my app shows them the location or path of the opened file which in the case when the app is snap packaged is not correct (
/run/user/1000/doc/7bfef3cf/2019-03-23_12-06.png) while the real path of the image is (
Am using QFileInfo class in both cases.