On 01/10/2017 04:15 AM, David Faure wrote:

> Step 1 can be tested separately with "kmimetypefinder5 myfile".

Yields "audio/x-rosegarden" as expected.

> What's your setup? Is XDG_DATA_DIRS set to a special value?

I found some irregularities in that string.  I failed to determine what 
got them there, so I resorted to using brute force.  The string as it 
exists in my current environment:

XDG_DATA_DIRS=/usr/share:/usr/share/xsessions/plasma:/usr/local/share:/var/lib/snapd/desktop

Note that fixing this environment variable had no effect on anything.

> Does /usr/share/mime exist?

Yes.

> When you say MIME icons aren't working, do you mean for ALL files, or only for
> Rosegarden documents?

Some MIME icons are working, but none of the Rosegarden ones.

> The icons themselves come from the icon theme. Do you have oxygen/or and
> breeze installed? What does `kiconfinder5 folder` return?

/usr/share/icons/breeze/places/32/folder.svg

> I can't reproduce that. Here's a screenshot of rosegarden's Qt file dialog.
> But I suppose it's just a consequence of what you say above.

Perhaps so.  It's good that is may just be a broken installation here. I 
upgraded to Kubuntu 16.04 some while back, and this has been broken 
since then.

> I am actually using a dark color theme in Plasma 5, and it seems to work just
> fine (from other apps). See attached screenshot. No stylesheet hacks there,
> just "Breeze Dark" chosen in `kcmshell5 colors`.

The problems come from the infectious stylesheet.

> Well, that would be the case, if your stylesheet didn't infect the whole Qt
> application :-)

I acknowledge that the stylesheet is an absolute nightmare.  Anyway, 
Spriter Pro has the same problem, so I feel better.

> I don't think there's anything I can do in the KDE file dialog to prevent it
> from being affected by the application stylesheet or widget style. It's Qt's
> design that the application widget style and palette affect all widgets in the
> process, including the file dialog.

I agree.  I think it's a flaw in Qt.  I can't think of any way to hack 
around this short of launching the file dialogs from a stand-alone 
application.

-- 
D. Michael McIntyre

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to