You are not logged in.
Pages: 1
Hi,
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">
<comment>Shell-Script</comment>
<icon name="xfce4-terminal"/>
<glob-deleteall/>
</mime-type>
</mime-info>
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"/>
</mime-type>
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?
Offline
Pages: 1
[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 516.63 KiB (Peak: 531.07 KiB) ]