staging.inyokaproject.org

Bei neu erstellten MIME fehlt Icon (Arduino-IDE)

Status: Ungelöst | Ubuntu-Version: Ubuntu 16.04 (Xenial Xerus)
Antworten |

Tederean

Avatar von Tederean

Anmeldungsdatum:
22. Dezember 2016

Beiträge: Zähle...

Hallo,

Ich habe ein kleines Problemchen bei der Arduino-IDE (bezogen aus einem PPA - bei der aus dem offiziellen Repository war der Fehler aber auch da). Mit den folgenden Befehlen habe ich den zusätzlichen MIME-Typ für *.ino Dateien erstellt (wie im xdg-utils (Abschnitt „Neuen-MIME-Typ-erstellen“) beschrieben). Funktioniert auch soweit alles gut. Im Menu wird die Anwendung mit Icon aufgelistet. *.ino Dateien werden auch als text/x-arduino von Nautilus erkannt, werden auch mit nem Doppelklick in der IDE geöffnet. Aber die *.ino Dateien selber haben immer noch ein ganz normales Text Icon und das sollte mit den nachfolgenden Befehlen eigentlich das Arduino Icon sein, ist es aber leider nicht. Mache ich etwas falsch? Freue mich auf Antworten. ☺

xdg-mime install /opt/arduino/lib/arduino-arduinoide.xml
xdg-icon-resource install --context mimetypes --size 16 "/opt/arduino/lib/icons/16x16/apps/arduino.png" arduino-arduinoide
xdg-icon-resource install --context mimetypes --size 24 "/opt/arduino/lib/icons/24x24/apps/arduino.png" arduino-arduinoide
xdg-icon-resource install --context mimetypes --size 32 "/opt/arduino/lib/icons/32x32/apps/arduino.png" arduino-arduinoide
xdg-icon-resource install --context mimetypes --size 48 "/opt/arduino/lib/icons/48x48/apps/arduino.png" arduino-arduinoide
xdg-icon-resource install --context mimetypes --size 64 "/opt/arduino/lib/icons/64x64/apps/arduino.png" arduino-arduinoide
xdg-icon-resource install --context mimetypes --size 72 "/opt/arduino/lib/icons/72x72/apps/arduino.png" arduino-arduinoide
xdg-icon-resource install --context mimetypes --size 96 "/opt/arduino/lib/icons/96x96/apps/arduino.png" arduino-arduinoide
xdg-icon-resource install --context mimetypes --size 128 "/opt/arduino/lib/icons/128x128/apps/arduino.png" arduino-arduinoide
xdg-icon-resource install --context mimetypes --size 256 "/opt/arduino/lib/icons/256x256/apps/arduino.png" arduino-arduinoide
xdg-desktop-menu install /tmp/arduino-arduinoide.desktop
xdg-mime default arduino-arduinoide.desktop text/x-arduino

arduino-arduinoide.xml

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?xml version='1.0' encoding='utf-8'?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
    <mime-type type="text/x-arduino">
        <comment>Arduino source code</comment>
	<comment xml:lang="ara">شفرة مصدر Arduino</comment>
	<comment xml:lang="be@latin">Kryničny kod Arduino</comment>
	<comment xml:lang="bg">Изходен код на Arduino</comment>
	<comment xml:lang="ca">codi font en Arduino</comment>
	<comment xml:lang="da">Arduinokildekode</comment>
	<comment xml:lang="de">Arduino-Quelltext</comment>
	<comment xml:lang="el">πηγαίος κώδικας Arduino</comment>
	<comment xml:lang="en_GB">Arduino source code</comment>
	<comment xml:lang="eo">Arduino-fontkodo</comment>
	<comment xml:lang="es">código fuente en Arduino</comment>
	<comment xml:lang="eu">Arduino iturburu-kodea</comment>
	<comment xml:lang="fi">Arduino-lähdekoodi</comment>
	<comment xml:lang="fr">code source Arduino</comment>
	<comment xml:lang="ga">cód foinseach Arduino</comment>
	<comment xml:lang="hu">Arduino-forráskód</comment>
	<comment xml:lang="id">Kode program Arduino</comment>
	<comment xml:lang="it">Codice sorgente Arduino</comment>
	<comment xml:lang="ja">Arduino ソースコード</comment>
	<comment xml:lang="lt">Arduino pradinis kodas</comment>
	<comment xml:lang="lv">Arduino pirmkods</comment>
	<comment xml:lang="ms">Kod sumber Arduino</comment>
	<comment xml:lang="nb">Arduino-kildekode</comment>
	<comment xml:lang="nl">Arduino-broncode</comment>
	<comment xml:lang="nn">Arduino-kjeldekode</comment>
	<comment xml:lang="pl">Kod źródłowy Arduino</comment>
	<comment xml:lang="pt">código fonte Arduino</comment>
	<comment xml:lang="pt_BR">Código fonte Arduino</comment>
	<comment xml:lang="ru">исходный код Arduino</comment>
	<comment xml:lang="sq">Kod burues Arduino</comment>
	<comment xml:lang="sv">Arduino-källkod</comment>
	<comment xml:lang="uk">Вихідний код на мові Arduino</comment>
	<comment xml:lang="vi"> nguồn Arduino</comment>
	<comment xml:lang="zh_CN">Arduino 源代码</comment>
	<comment xml:lang="zh_TW">Arduino 源代碼</comment>
        <sub-class-of type="text/x-c++src"/>
        <glob pattern="*.ino"/>
    </mime-type>
</mime-info>

Vej Team-Icon

Moderator, Supporter
Avatar von Vej

Anmeldungsdatum:
7. März 2013

Beiträge: 3380

Hallo Tederan.

Wie sieht denn die /tmp/arduino-arduinoide.desktop aus?

Viele Grüße

Vej

Tederean

(Themenstarter)
Avatar von Tederean

Anmeldungsdatum:
22. Dezember 2016

Beiträge: 25

Vej schrieb:

Hallo Tederan.

Wie sieht denn die /tmp/arduino-arduinoide.desktop aus?

Viele Grüße

Vej

[Desktop Entry]
Type=Application
Name=Arduino IDE
GenericName=Arduino IDE
Comment=Open-source electronics prototyping platform
Exec=/opt/arduino/arduino
Icon=arduino-arduinoide
Terminal=false
Categories=Development;IDE;Electronics;
MimeType=text/x-arduino;
Keywords=embedded electronics;electronics;avr;microcontroller;
StartupWMClass=processing-app-Base

Liebe Grüße Tederean

Antworten |