Bug 399829 - Icon for .kt files (Kotlin programming language)
Summary: Icon for .kt files (Kotlin programming language)
Status: RESOLVED FIXED
Alias: None
Product: Breeze
Classification: Plasma
Component: Icons (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: visual-design
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-15 11:03 UTC by Sudhir Khanger
Modified: 2019-01-13 18:10 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.55


Attachments
dolphin screenshot (13.20 KB, image/png)
2018-10-15 11:03 UTC, Sudhir Khanger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sudhir Khanger 2018-10-15 11:03:21 UTC
Created attachment 115654 [details]
dolphin screenshot

SUMMARY
Programming language files have their own specialized icons. Kotlin has none and is using the standard text file icon.

STEPS TO REPRODUCE
1. create a file
2. rename the extension to .kt
3. 

OBSERVED RESULT Standard text file icons is displayed in Dolphin


EXPECTED RESULT Kotlin programming language icons should be displayed


SOFTWARE VERSIONS
(available in About System)
KDE Plasma Version: 5.13.5
KDE Frameworks Version: 5.48.0
Qt Version: 5.11.1

ADDITIONAL INFORMATION

breeze-icon-theme.noarch                   5.48.0-2.fc28
Comment 1 Kai Uwe Broulik 2018-10-15 11:33:19 UTC
It looks like shared-mime-info doesn't know Kotlin files (.kt), so it treats it as what it is: a plain text file. 

$ file foo.kt
foo.kt: text/plain

Perhaps file a bug report against shared-mime-info
Comment 2 Sudhir Khanger 2018-10-15 12:30:09 UTC
$ file -i APlusB.java
APlusB.java: text/x-c++; charset=us-ascii
$ file -i APlusB.kt
APlusB.kt: text/x-c; charset=us-ascii

I wonder why mime types are being misreported on my system. I will file a bug report against shared-mime-info
Comment 3 Nate Graham 2018-10-15 13:40:03 UTC
Once shared-mime-info knows about the file type, we will need a Breeze icon whose name is equal to the mimetype. Moving this back to Breeze Icons.
Comment 4 Sudhir Khanger 2018-10-15 15:27:15 UTC
https://gitlab.freedesktop.org/xdg/shared-mime-info/issues/93

Filed the bug with the shared-mime-info.

Thanks.
Comment 5 Kai Uwe Broulik 2018-10-15 15:43:18 UTC
Thanks for taking care of this! Closing as downstream bug then.
Comment 6 Nate Graham 2018-10-15 15:49:04 UTC
Well we still need an appropriate icon, right?
Comment 7 Sudhir Khanger 2018-10-15 17:25:33 UTC
If you need inspiration for the logo you may checkout the official branding in the link below.

https://kotlinlang.org/docs/reference/faq.html#where-can-i-get-an-hd-kotlin-logo
Comment 8 Nate Graham 2019-01-13 18:10:23 UTC
Git commit 33ca64ca5c0da682ba5e6177a5578d1487e38c0e by Nate Graham, on behalf of Rafael Brandmaier.
Committed on 13/01/2019 at 16:11.
Pushed by ngraham into branch 'master'.

Add Kotlin (.kt) mimetype icons

Summary:

FIXED-IN: 5.54

Add an icon for Kotlin files (.kt).

Test Plan: {F6547502}

Reviewers: #vdg, ngraham, ndavis

Reviewed By: #vdg, ngraham, ndavis

Subscribers: alex-l, ngraham, kde-frameworks-devel

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D18199

A  +1    -0    icons-dark/mimetypes/16/text-x-kotlin.svg
A  +1    -0    icons-dark/mimetypes/22/text-x-kotlin.svg
A  +1    -0    icons-dark/mimetypes/32/text-x-kotlin.svg
A  +1    -0    icons-dark/mimetypes/64/text-x-kotlin.svg
A  +1    -0    icons/mimetypes/16/text-x-kotlin.svg
A  +1    -0    icons/mimetypes/22/text-x-kotlin.svg
A  +1    -0    icons/mimetypes/32/text-x-kotlin.svg
A  +1    -0    icons/mimetypes/64/text-x-kotlin.svg

https://commits.kde.org/breeze-icons/33ca64ca5c0da682ba5e6177a5578d1487e38c0e