Bug 419097

Summary: Wrong icon for Raku/perl6
Product: [Applications] krusader Reporter: Todd <toddandmargo>
Component: generalAssignee: Krusader Bugs Distribution List <krusader-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: minor CC: davide, krusader-bugs-null
Priority: NOR    
Version First Reported In: 2.7.1   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Todd 2020-03-22 07:14:25 UTC
Fedora 31, x64
Xfce 4.14
krusader-2.7.1-3.fc31.x86_64

Dear Krusader,

This is very minor, but both *.pl (Perl5) and *.pl6 (Raku/Perl 6) files show a blue camel as there icon.  The proper icon for *.pl6 files is

https://raku.org/camelia-logo.png

Picky, picky, picky.

Please fix when you are bored and have nothing else to do.

Many thanks,
-T
Comment 1 Christoph Feck 2020-04-15 10:57:59 UTC
Is the icon also wrong in Dolphin?
Comment 2 Todd 2020-04-15 19:13:00 UTC
Dolphin messes my machine up, so I'd rather not install it.  Thunar just shows a piece of paper, like a text file. Nautilus just shows a purple square on its point.  Does that help?
Comment 3 Christoph Feck 2020-04-15 19:55:15 UTC
No, it doesn't help, because only Dolphin and Krusader are using KDE code. If both show the issue, then the bug is in a lower level KDE framework.

But if you say Dolphin messes up your system, we need to wait until someone can provide the information requested in comment 1.
Comment 4 Bug Janitor Service 2020-04-30 04:33:15 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Todd 2020-04-30 13:40:24 UTC
Sorry.  I can't risk messing up my system with Dolphin
Comment 6 Davide Gianforte 2020-04-30 14:04:30 UTC
Can you run the command "file --mime-type <file>" to both .pl and .pl6 files and post the result? Files cannot be empty.

As Christoph pointed, icons are managed globally in KDE and we ask to replicate many Krusader bugs on Dolphin.

You could change icons from KDE's System Settings - Applications - File Association (systemsettings5) or the single module "kcmshell5 filetypes". If you don't have those programs installed, the first information could be enough.
Comment 7 Todd 2020-04-30 14:15:23 UTC
That I can do!

Note: the Perl 6 folks are slowly changing their extensions from .pl6 to .raku

Perl 6:
$ file --mime-type TermTest.pl6
TermTest.pl6: text/x-perl

$ file --mime-type SubTest.raku
SubTest.raku: text/x-perl


Perl 5:
$ file --mime-type RenameDots.pl
RenameDots.pl: text/x-perl
Comment 8 Christoph Feck 2020-04-30 14:27:28 UTC
The 'file' command doesn't query the XDG mime database, but uses its own database, called 'magic'.
Comment 9 Davide Gianforte 2020-04-30 14:37:00 UTC
(In reply to Christoph Feck from comment #8)
> The 'file' command doesn't query the XDG mime database, but uses its own
> database, called 'magic'.

Right, the command should be "xdg-mime query filetype <file>"
Comment 10 Todd 2020-04-30 14:39:03 UTC
$ xdg-mime query filetype  X11Test.pl6
application/x-perl

$ xdg-mime query filetype  X11Test.raku
application/x-perl
Comment 11 Christoph Feck 2020-04-30 15:07:12 UTC
This confirms that the bug is in the XDG MIME database. The MIME type for Perl 6 is text/x-perl6.

Please report this issue directly to the XDG MIME database maintainers via https://gitlab.freedesktop.org/xdg/shared-mime-info/issues
Comment 12 Christoph Feck 2020-04-30 15:08:43 UTC
Of course it's "application/x-perl6"... I should learn to use copy/paste.
Comment 13 Todd 2020-05-02 03:47:25 UTC
Wrong icon for Perl6 / Raku:
https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/133