Giter Club home page Giter Club logo

Comments (11)

gusbemacbe avatar gusbemacbe commented on August 11, 2024

This is the third extension that Linux does not support yet.

ELM, Nim and PureScript are not present in the file associations list at Manjaro KDE.

If not, maybe you have to add and create x-elm, x-nim and x-purs, like:

image

But I am waiting for the answer of @SmartFinn.

from suru-plus-ubuntu.

gusbemacbe avatar gusbemacbe commented on August 11, 2024

I have tested, creating new extension and it worked. But you use GNOME and I do not know how to create the new extension. Let's wait for the answer of @SmartFinn, he is an experienced programmer. As these extensions are not supported yet, the programmers who use this icons theme have to create by themselves.

image

from suru-plus-ubuntu.

gusbemacbe avatar gusbemacbe commented on August 11, 2024

KDE develoeprs: @rwha and @cfeck, @Montel, @davidedmundson,
@Pointedstick

GNOME developers: @averi, @behdad, @cgwalters and @SEJeff

Good evening, please consider adding support for ELM, Nim and PureScript programming languages as new files associations if possible. They are becoming popular, principally ELM.

from suru-plus-ubuntu.

gusbemacbe avatar gusbemacbe commented on August 11, 2024

Now, in the commit 3a7ee64, PureScript mimetype is added.

Wait for the answer of @SmartFinn, he will test it and tell you how you create in GNOME.

from suru-plus-ubuntu.

 avatar commented on August 11, 2024

@gusbemacbe okay, thank you so much!

from suru-plus-ubuntu.

gusbemacbe avatar gusbemacbe commented on August 11, 2024

@SmartFinn, sorry, I found something, but I am not sure it will work on Gnome, maybe @ntilotta , you can try and test.

I found where the ELM ffile asocitaion I created is stored. It is in ~/.local/share/mime/

Run via terminal:

touch ~/.local/share/mime/text/x-elm.xml
touch ~/.local/share/mime/icons
nano ~/.local/share/mime/text/x-elm.xml

Copy

<?xml version="1.0" encoding="utf-8"?>
<mime-type xmlns="http://www.freedesktop.org/standards/shared-mime-info" type="text/x-elm">
  <!--Created automatically by update-mime-database. DO NOT EDIT!-->
  <comment>ELM Programming Language</comment>
  <icon name="x-elm"/>
  <glob-deleteall/>
  <glob pattern="*.elm"/>
</mime-type>

And modify the file icons via the command nano ~/.local/share/mime/icons

x-elm

Log out and log in

from suru-plus-ubuntu.

 avatar commented on August 11, 2024

@gusbemacbe I've using this method as described in here https://developer.gnome.org/integration-guide/stable/mime.html.en as follow:

In directory /usr/share/mime/packages I've created those files:

elm-lang.xml

<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
  <mime-type type="text/x-elm">
    <comment>Elm Programming Language</comment>
    <glob pattern="*.elm"/>
    <icon name="x-elm"/>
  </mime-type>
</mime-info>

nim-lang.xml

<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
  <mime-type type="text/x-nim">
    <comment>Nim Programming Language</comment>
    <glob pattern="*.nim"/>
    <icon name="x-nim"/>
  </mime-type>
  <mime-type type="text/x-nim">
    <comment>NimScript File</comment>
    <glob pattern="*.nims"/>
    <icon name="x-nim"/>
  </mime-type>
  <mime-type type="text/x-nim">
    <comment>Nimble File</comment>
    <glob pattern="*.nimble"/>
    <icon name="x-nim"/>
  </mime-type>
</mime-info>

purescript.xml

<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
  <mime-type type="text/x-purs">
    <comment>PureScript Programming Language</comment>
    <glob pattern="*.purs"/>
    <icon name="x-purs"/>
  </mime-type>
</mime-info>

Icons

then on the console just enter sudo update-mime-database /usr/share/mime/ and you've done, it works like a charm ;)

from suru-plus-ubuntu.

gusbemacbe avatar gusbemacbe commented on August 11, 2024

Great! I close now.

from suru-plus-ubuntu.

Pointedstick avatar Pointedstick commented on August 11, 2024

Ideally this would be added to shared-mime-info so individual desktop environments wouldn't have to redundantly add support themselves.

https://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec/

from suru-plus-ubuntu.

gusbemacbe avatar gusbemacbe commented on August 11, 2024

@Pointedstick

I read, but I do not understand. Are you suggesting us to submit an enhancement request to the MIME bugtracker with our new missed XML files that we have created?

from suru-plus-ubuntu.

Pointedstick avatar Pointedstick commented on August 11, 2024

Yes.

from suru-plus-ubuntu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.