# Associating .fzz files with Fritzing in Linux

**URL:** <https://forum.fritzing.org/t/associating-fzz-files-with-fritzing-in-linux/22626>\
**Category:** uncategorized\
**Created:** [February 29, 2024, 4:14am UTC](https://forum.fritzing.org/t/associating-fzz-files-with-fritzing-in-linux/22626 "2024-02-29T04:14:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![klandingham](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/k/e47c2d/32.png) [@klandingham](https://forum.fritzing.org/u/klandingham)\
**Post date:** [February 29, 2024, 4:14am UTC](https://forum.fritzing.org/t/associating-fzz-files-with-fritzing-in-linux/22626/1 "2024-02-29T04:14:53Z")

</div>

On Linux (Ubuntu), I want to be able to click on an .fzz file and have it immediately open in Fritzing. I don’t seem to be able to do this. I found a fritzing.desktop file in ~/.local/share/applications, but the MIME type is empty.

Can this be done?

Thanks.

---

<div class="post-metadata">

**Author:** ![microMerlin](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/m/76d3ee/32.png) [@microMerlin](https://forum.fritzing.org/u/microMerlin)\
**Post date:** [February 29, 2024, 5:44am UTC](https://forum.fritzing.org/t/associating-fzz-files-with-fritzing-in-linux/22626/2 "2024-02-29T05:44:30Z")

</div>

It’s possible. I’ve done it with Fedora. But that was **years** ago, and I do not remember the details. I had to do a bunch of research first. It still works, so I have not had to touch it again.

---

<div class="post-metadata">

**Author:** ![klandingham](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/k/e47c2d/32.png) [@klandingham](https://forum.fritzing.org/u/klandingham)\
**Post date:** [February 29, 2024, 10:48am UTC](https://forum.fritzing.org/t/associating-fzz-files-with-fritzing-in-linux/22626/3 "2024-02-29T10:48:44Z")

</div>

Yeah, I keep forgetting…Linux was made for developers, not office workers. 😃

Thank you for taking the time to reply.

---

<div class="post-metadata">

**Author:** ![miriki](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/m/f0a364/32.png) [@miriki](https://forum.fritzing.org/u/miriki)\
**Post date:** [March 1, 2024, 5:25pm UTC](https://forum.fritzing.org/t/associating-fzz-files-with-fritzing-in-linux/22626/4 "2024-03-01T17:25:17Z")

</div>

I don’t know if it helps, but with Debian I’d use Dolphin, right click the file and “open with …”. You can select the application from the treeview and should activate the “assign all” checkbox at the bottom.

Nevertheless… It will open Fritzing with a click on an .fzz or .fzpz file as shown in the screenshot, but it won’t load the file itself. Just an empty breadboard is shown. (The part should be loaded into “own” parts section.)

So at least it might point you into the right direction.

Michael

---

<div class="post-metadata">

**Author:** ![Harald\_Rau](https://forum.fritzing.org/user_avatar/forum.fritzing.org/harald_rau/32/21072_2.png) [@Harald\_Rau](https://forum.fritzing.org/u/Harald_Rau)\
**Post date:** [February 20, 2025, 1:26pm UTC](https://forum.fritzing.org/t/associating-fzz-files-with-fritzing-in-linux/22626/5 "2025-02-20T13:26:37Z")

</div>

Hallo,  
ich habe das gleiche Problem mit Debian 12. Ich beschreibe mal die Schrittfolge [und bleibe mal in der Sprache Deutsch]

**1. Erstellen der MIME Type Datei x-fritzing.xml für die Zuordnung eines neuen MIME Type**

```auto
<?xml version="1.0"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
	<mime-type type="application/x-fritzing">
		<comment>Textfile with Fritzing</comment>
		<glob pattern="*.fz"/>
		<glob pattern="*.fzz"/>
		<glob pattern="*.fzpz"/>
		<glob pattern="*.fzb"/>
		<glob pattern="*.fzbz"/>
		<icon name="application-x-fritzing"/>
	</mime-type>
</mime-info>

```

**2. Installieren des neuen MIME Type**

```auto
xdg-mime install x-fritzing.xml

```

**3. Icon installieren**

Das Icon habe ich mir aus dem AppImage extrahiert.

```auto
xdg-icon-resource install --context mimetypes --size 64 fritzing_64.png application-x-fritzing
xdg-icon-resource install --context mimetypes --size 128 fritzing_128.png application-x-fritzing
xdg-icon-resource install --context mimetypes --size 256 fritzing_256.png application-x-fritzing

```

**4. fritzing.desktop-Datei als Starter einrichten**

```auto
xdg-mime default arduino.desktop application/x-fritzing

```

hier die Datei ~/.local/share/applications/fritzing.desktop

```auto
[Desktop Entry]
Version=1.1
Type=Application
Name=Fritzing
Comment=Fritzing
Icon=/home/hara/Software/AppImage/fritzing/fritzing.svg
Exec=/home/hara/Software/AppImage/fritzing/fritzing.AppImage
Actions=
MimeType=application/x-fritzing;
Categories=Development;
StartupNotify=true

```

Bei Ubuntu 20.04 hat diese Vorgehensweise zum Erfolg geführt, bei Debian 12 leider nicht.

Welchen Fehler mache ich?  
Ich wollte ein kleines bash-Script schreiben, welches dies Aufgabe dann erledigt.

Gruß Harald!

---

<div class="post-metadata">

**Author:** ![Harald\_Rau](https://forum.fritzing.org/user_avatar/forum.fritzing.org/harald_rau/32/21072_2.png) [@Harald\_Rau](https://forum.fritzing.org/u/Harald_Rau)\
**Post date:** [February 20, 2025, 2:18pm UTC](https://forum.fritzing.org/t/associating-fzz-files-with-fritzing-in-linux/22626/6 "2025-02-20T14:18:39Z")

</div>

Ich habe die LÖSUNG gefunden. Die Icons müssen nach _Adwaita_ verlinkt werden.

```auto
sudo ln -s ~/.local/share/icons/hicolor/64x64/mimetypes/application-x-fritzing.png /usr/share/icons/Adwaita/64x64/mimetypes/application-x-fritzing.png

sudo ln -s ~/.local/share/icons/hicolor/256x256/mimetypes/application-x-fritzing.png /usr/share/icons/Adwaita/256x256/mimetypes/application-x-fritzing.png

sudo gtk-update-icon-cache /usr/share/icons/Adwaita

```

Das hat bei mir geholfen. Kann das jemand bestätigen?

Gruß Harald!
