[krita] [Bug 361973] File open/save/export dialogs broken

2016-05-02 Thread Boudewijn Rempt via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361973

Boudewijn Rempt  changed:

   What|Removed |Added

  Latest Commit|http://commits.kde.org/krit |http://commits.kde.org/krit
   |a/2b35122a513c062a28e302e86 |a/d9c68ec2f32e7db3564db1f26
   |c6c5d18cdb3d594 |9500ac0fa4bd57b

--- Comment #16 from Boudewijn Rempt  ---
Git commit d9c68ec2f32e7db3564db1f269500ac0fa4bd57b by Boudewijn Rempt.
Committed on 02/05/2016 at 12:27.
Pushed by rempt into branch 'master'.

This should fix bug 361973 even for people who build Krita on
their own. It must be a bug somewhere in Qt, and a recent
regression, too. Just stopping to use QMimeDataBase doesn't
fix it, since it's some Qt-internal usage that breaks everything
in QFileDialog if there is a mime directory in the XDG_DATA_DIRS.

M  +0-6CMakeLists.txt
M  +0-1krita/data/CMakeLists.txt
D  +0-9krita/data/mime/CMakeLists.txt
D  +0-36   krita/data/mime/krita.xml
D  +0-7krita/data/mime/x-gimp-brush-animated.xml
D  +0-8krita/data/mime/x-gimp-brush.xml
M  +0-3linux/build-image.sh
M  +0-5plugins/flake/vectorshape/CMakeLists.txt
D  +0-13   plugins/flake/vectorshape/krita_svm.xml
M  +0-5plugins/impex/ora/CMakeLists.txt
D  +0-18   plugins/impex/ora/krita_ora.xml

http://commits.kde.org/krita/d9c68ec2f32e7db3564db1f269500ac0fa4bd57b

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


[krita] [Bug 361973] File open/save/export dialogs broken

2016-05-02 Thread Boudewijn Rempt via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361973

Boudewijn Rempt  changed:

   What|Removed |Added

 Resolution|--- |FIXED
  Latest Commit||http://commits.kde.org/krit
   ||a/2b35122a513c062a28e302e86
   ||c6c5d18cdb3d594
 Status|UNCONFIRMED |RESOLVED

--- Comment #15 from Boudewijn Rempt  ---
Git commit 2b35122a513c062a28e302e86c6c5d18cdb3d594 by Boudewijn Rempt.
Committed on 02/05/2016 at 10:41.
Pushed by rempt into branch 'master'.

Remove the shared mime dir when packaging

On Redhat-based distributions, having an extra mime dir in the
XDG_DATA_DIRS confuses the file dialog into not being able to
retrieve any mimetype. Is it a Qt bug? Is it a Redhat bug? I
don't know, but removing the mimedir makes everything work again,
and we don't use our own mimetype definitions anyway, we have
a fallback for them because QMimeDatabase is too stupid to allow
us to add mimetypes programmatically.

We still want to install our own mimetypes, or rather, I suspect
distributions want us to, so we cannot just skip that. But if
you build on redhat-derived distributions, you'll have to manually
remove the mime dir every time after doing a make install.

M  +3-0linux/build-image.sh

http://commits.kde.org/krita/2b35122a513c062a28e302e86c6c5d18cdb3d594

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


[krita] [Bug 361973] File open/save/export dialogs broken

2016-04-29 Thread Boudewijn Rempt via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361973

--- Comment #14 from Boudewijn Rempt  ---
I still don't know what's up, but the only way I can reproduce it is in a
fedora 23 live session. The file dialog is completely broken there.

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


[krita] [Bug 361973] File open/save/export dialogs broken

2016-04-25 Thread Ilya V . Portnov via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361973

--- Comment #13 from Ilya V. Portnov  ---
I think it depends somehow on DE running. Maybe KDE sets XDG_DATA_DIRS somehow.
On my configuration XDG_DATA_DIRS is not set and everything works somehow.
It may be also important that I install krita by running make install with
custom installation directory (smth like /home/portnov/soft/krita).

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


[krita] [Bug 361973] File open/save/export dialogs broken

2016-04-25 Thread Boudewijn Rempt via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361973

--- Comment #12 from Boudewijn Rempt  ---
But we cannot just not set that because that means the translations cannot be
found. And I don't get how this can break the KDE file dialog either...

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


[krita] [Bug 361973] File open/save/export dialogs broken

2016-04-24 Thread Ilya V . Portnov via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361973

--- Comment #11 from Ilya V. Portnov  ---
Well, following is pretty simple patch against git master which resolves the
bug in my case:

diff --git a/krita/main.cc b/krita/main.cc
index 7f79ddf..d1752dc 100644
--- a/krita/main.cc
+++ b/krita/main.cc
@@ -112,7 +112,7 @@ extern "C" int main(int argc, char **argv)
 KisApplication app(key, argc, argv);

 #ifdef Q_OS_LINUX
-qputenv("XDG_DATA_DIRS",
QFile::encodeName(KoResourcePaths::getApplicationRoot() + "share") + ":" +
qgetenv("XDG_DATA_DIRS"));
+//qputenv("XDG_DATA_DIRS",
QFile::encodeName(KoResourcePaths::getApplicationRoot() + "share") + ":" +
qgetenv("XDG_DATA_DIRS"));
 #else
 qputenv("XDG_DATA_DIRS",
QFile::encodeName(KoResourcePaths::getApplicationRoot() + "share"));
 #endif

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


[krita] [Bug 361973] File open/save/export dialogs broken

2016-04-20 Thread Ilya V . Portnov via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361973

--- Comment #10 from Ilya V. Portnov  ---
"Suspected" part of that commit is

+#ifdef Q_OS_LINUX
+qputenv("XDG_DATA_DIRS",
QFile::encodeName(KoResourcePaths::getApplicationRoot() + "/share") + ":" +
qgetenv("XDG_DATA_DIRS"));
+#else
+qputenv("XDG_DATA_DIRS",
QFile::encodeName(KoResourcePaths::getApplicationRoot() + "/share"));
+#endif
+//qDebug() << "Setting XDG_DATA_DIRS" << qgetenv("XDG_DATA_DIRS");

In my environment, I have XDG_DATA_DIRS not set.

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


[krita] [Bug 361973] File open/save/export dialogs broken

2016-04-20 Thread Ilya V . Portnov via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361973

--- Comment #9 from Ilya V. Portnov  ---
So, I finally run git bisect, and the result is:

5ef533050cd4206353b44fecd4f06edd6e94e729 is the first bad commit
commit 5ef533050cd4206353b44fecd4f06edd6e94e729
Author: Boudewijn Rempt 
Date:   Wed Apr 6 20:57:52 2016 +0200

Find all the languages so the language chooser is shown

Make sure that on all platforms the local xdg_data_dirs is part
of the environment variable, the one that is bin'../share or
MacOS/../share.

And remove the kauthorized stuff as well. Nobody is going to disable
anything in the help menu in krita in any kind of kiosk situation.

:04 04 1daab4b1c7328743631461c0f7dc61e61905
b89d6b0304263dda7fc9a7ccb4fc14c3f248b00e M  libs

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


[krita] [Bug 361973] File open/save/export dialogs broken

2016-04-20 Thread Ilya V . Portnov via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361973

--- Comment #8 from Ilya V. Portnov  ---
Git revision bae990e... is "good", file dialog works in it.
It seems I have to do git bisect, but building krita each time takes so much
time... :/

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


[krita] [Bug 361973] File open/save/export dialogs broken

2016-04-20 Thread Boudewijn Rempt via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361973

--- Comment #7 from Boudewijn Rempt  ---
The XDG setting means the KDE dialog is selected -- I wonder whether that
works. In any case, I'm trying to reproduce and debug.

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


[krita] [Bug 361973] File open/save/export dialogs broken

2016-04-20 Thread Ilya V . Portnov via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361973

--- Comment #6 from Ilya V. Portnov  ---
I can't say exactly which dialog is used - it may be Qt's or KDE's one.

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


[krita] [Bug 361973] File open/save/export dialogs broken

2016-04-20 Thread Ilya V . Portnov via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361973

--- Comment #5 from Ilya V. Portnov  ---
This is "self-made" desktop environment. I use XMonad as WM, some KDE apps and
some GTK apps. Also, I have XDG_CURRENT_DESKTOP=KDE.

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


[krita] [Bug 361973] File open/save/export dialogs broken

2016-04-20 Thread Boudewijn Rempt via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361973

Boudewijn Rempt  changed:

   What|Removed |Added

 CC||b...@valdyas.org

--- Comment #4 from Boudewijn Rempt  ---
Which desktop environment are you using? There are three dialogs possible on
Linux, the GTK, Qt and KDE one, and all have different bugs.

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


[krita] [Bug 361973] File open/save/export dialogs broken

2016-04-19 Thread Ilya V . Portnov via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361973

--- Comment #3 from Ilya V. Portnov  ---
Created attachment 98467
  --> https://bugs.kde.org/attachment.cgi?id=98467=edit
Full stderr log

Attaching full log from stdout 

The desktop environment is not KDE, but Dolphin (5) launches and works very
well, and shows all thumbnails.

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


[krita] [Bug 361973] File open/save/export dialogs broken

2016-04-19 Thread Ilya V . Portnov via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361973

--- Comment #2 from Ilya V. Portnov  ---
Fragment of stderr output:

("image/webp", "image/x-r16", "image/x-xbitmap", "image/openraster",
"text/x-qml", "image/tiff", "application/x-extension-exr", "image/png",
"image/vnd.adobe.photoshop", "image/x-gimp-brush", "text/csv",
"image/vnd.microsoft.icon", "image/x-portable-bitmap", "image/bmp",
"application/x-krita", "image/x-portable-pixmap", "image/jpeg",
"image/x-gimp-brush-animated", "image/x-exr", "image/x-tga", "image/x-xpixmap",
"image/x-portable-graymap", "application/x-spriter", "image/jp2", "image/x-r8")
No file found for ".xml" , even though update-mime-info said it would exist.
Either it was just removed, or the directory doesn't have executable
permission...

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


[krita] [Bug 361973] File open/save/export dialogs broken

2016-04-19 Thread Ilya V . Portnov via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361973

--- Comment #1 from Ilya V. Portnov  ---
Created attachment 98466
  --> https://bugs.kde.org/attachment.cgi?id=98466=edit
Export file dialog example

Selected directory actually contains a lot of files in different formats.

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