Xfce Forum

Sub domains

You are not logged in.

#1 2023-09-23 12:05:12

Registered: 2016-09-18
Posts: 125

Customize Icon for MimeType


after the last Xfce update the Icon for the shell scripts has changed from th eregular xfce4-terminal icon to this icon https://ibb.co/bsCLNzK. As i understand the "mimetype process" there is an xml file for each mimetype in /home/$USER/.local/share/mime/<subfolder>. To add a new mimetype i create a new file in packages subfolder and update the mime database. A new xml file is created in one of the subfolders, 'application' in case of a shell script (mimetype: application/x-shellscript). In these xml file i can set the icon. The icon name hasn't changed its still the "xfce4-terminal" icon:

<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
    <mime-type type="application/x-shellscript">
        <icon name="xfce4-terminal"/>

There is an other x-shellscript.xml in /usr/share/mime/application:

<mime-type xmlns="http://www.freedesktop.org/standards/shared-mime-info" type="application/x-shellscript">
  <!--Created automatically by update-mime-database. DO NOT EDIT!-->
  <sub-class-of type="application/x-executable"/>
  <sub-class-of type="text/plain"/>
  <alias type="text/x-sh"/>
  <generic-icon name="text-x-script"/>
  <glob pattern="*.sh"/>

That file includes "generic-icon name" but i can't find a icon called "text-x-script" (i have yad installed that comes with a little nice icon browser).

When there is a xml in the mime folder in the home dir an in /usr/share/mime the xml in home should be used?


Board footer

Powered by FluxBB