Bug 370320

Summary: Cannot open Krita files by double clicking
Product: [Applications] krita Reporter: silva <a.minha.venda.de.garagem>
Component: File formatsAssignee: Halla Rempt <halla>
Status: RESOLVED UPSTREAM    
Severity: normal CC: a4ahimsa, f.alavi2008, halla, pricelist2017, scheherazade_rains_death
Priority: NOR    
Version First Reported In: 3.0.2 Alpha   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: attachment-26469-0.html
attachment-2295-0.html

Description silva 2016-10-08 22:02:18 UTC
When I try to open a Krita file by double clicking, it doesn't open the file (Krita opens but the file doesn't). If I want to open a file, I have to use the cmd+o inside Krita.
Comment 1 Halla Rempt 2016-10-10 07:14:09 UTC
Hi Silva,

I can confirm the issue.
Comment 2 Halla Rempt 2016-10-20 14:38:40 UTC
Note to self: check void KisApplication::fileOpenRequested(const QString &url)

See http://doc.qt.io/qt-5/qfileopenevent.html
Comment 3 Halla Rempt 2017-01-25 12:34:59 UTC
Okay, this works if there is already a window open, but not if there isn't a window open yet.
Comment 4 Halla Rempt 2018-01-18 13:58:00 UTC
*** Bug 389156 has been marked as a duplicate of this bug. ***
Comment 5 Halla Rempt 2018-02-26 10:05:09 UTC
*** Bug 391081 has been marked as a duplicate of this bug. ***
Comment 6 Halla Rempt 2018-03-21 08:20:20 UTC
*** Bug 392120 has been marked as a duplicate of this bug. ***
Comment 7 silva 2018-03-27 10:06:02 UTC
Solved in version 4! Thanks!
Comment 8 scheherazade_rains_death 2018-03-27 16:12:33 UTC
Not for me?
Comment 9 Halla Rempt 2018-03-28 07:29:11 UTC
Um... I didn't even try to fix this issue on macOS, so I am not sure how it could be solved.
Comment 10 Halla Rempt 2018-05-18 13:56:59 UTC
Just tested it, and it works for me, if the app bundle is in /Applications.
Comment 11 Halla Rempt 2018-05-18 13:57:27 UTC
Stop, that's not correct. It starts Krita, but doesn't open the file.
Comment 12 silva 2018-05-18 14:27:40 UTC
Created attachment 112731 [details]
attachment-26469-0.html

Hmmm. I don't have Krita now to test, but if I remember, Krita was already
started and I clicked a Krita file and it opened.

On Fri, May 18, 2018 at 2:57 PM, Boudewijn Rempt <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=370320
>
> Boudewijn Rempt <boud@valdyas.org> changed:
>
>            What    |Removed                     |Added
> ------------------------------------------------------------
> ----------------
>              Status|RESOLVED                    |REOPENED
>          Resolution|FIXED                       |---
>
> --- Comment #11 from Boudewijn Rempt <boud@valdyas.org> ---
> Stop, that's not correct. It starts Krita, but doesn't open the file.
>
> --
> You are receiving this mail because:
> You reported the bug.
>
Comment 13 Halla Rempt 2018-05-19 06:47:10 UTC
Yes, the issue is that there's no window when clicking on a file if krita isn't open, and krita needs an open window to open a file. I'll try to fix that.
Comment 14 Halla Rempt 2018-05-19 09:38:35 UTC
I am pretty sure I cannot fix this :-(. The Qt solution for the problem sends an event to the application, but that only works if the application is running.
Comment 15 silva 2018-05-19 13:12:19 UTC
Created attachment 112751 [details]
attachment-2295-0.html

Ok. Thanks anyway! Keep up the fantastic work!

On Sat, May 19, 2018 at 10:38 AM, Boudewijn Rempt <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=370320
>
> Boudewijn Rempt <boud@valdyas.org> changed:
>
>            What    |Removed                     |Added
> ------------------------------------------------------------
> ----------------
>              Status|ASSIGNED                    |RESOLVED
>          Resolution|---                         |UPSTREAM
>
> --- Comment #14 from Boudewijn Rempt <boud@valdyas.org> ---
> I am pretty sure I cannot fix this :-(. The Qt solution for the problem
> sends
> an event to the application, but that only works if the application is
> running.
>
> --
> You are receiving this mail because:
> You reported the bug.
>