# GNOME application launcher for local penpot installation

**URL:** <https://community.penpot.app/t/gnome-application-launcher-for-local-penpot-installation/4371>\
**Category:** Contribution\
**Created:** [January 25, 2024, 11:24am UTC](https://community.penpot.app/t/gnome-application-launcher-for-local-penpot-installation/4371 "2024-01-25T11:24:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![manuel](https://dub1.discourse-cdn.com/flex017/user_avatar/community.penpot.app/manuel/32/3928_2.png) [@manuel](https://community.penpot.app/u/manuel)\
**Post date:** [January 25, 2024, 11:24am UTC](https://community.penpot.app/t/gnome-application-launcher-for-local-penpot-installation/4371/1 "2024-01-25T11:24:16Z")

</div>

Works nicely for me right now to launch my local docker installation. Sharing this here for documentation and maybe it’s useful for someone.

You need 3 files to implement this. I put all three into `$HOME/.local/share/applications/`

## 1) Shell script to start docker and open a browser window

`penpot.sh`

```auto
#!/bin/bash
if [! "$( docker container inspect -f '{{.State.Status}}' penpot-penpot-frontend-1 )" == "running"] 
then
  docker compose -p penpot -f $PATHTOPENPOT/docker-compose.yaml up -d
fi
xdg-open http://localhost:9001

```

## 2) Desktop icon

`penpot.png`

 ![penpot](https://europe1.discourse-cdn.com/flex017/uploads/penpot/original/2X/e/e2dc23652521cc70d35dfe14533f963c47a862f4.png)

## 3) Launcher file

`penpot.desktop`

```auto
[Desktop Entry]
Encoding=UTF-8
Name=Penpot
Exec=$HOME/.local/share/applications/penpot.sh
Icon=$HOME/.local/share/applications/penpot.png
Type=Application
Categories=Graphics

```

The $HOME variable is not resolved in the desktop file, you need to state your actual path. From the GNOME documentation:

> The application binary is listed in the Exec key, either the complete path or a binary that is looked up in the PATH.

---

<div class="post-metadata">

**Author:** ![diacritica](https://dub1.discourse-cdn.com/flex017/user_avatar/community.penpot.app/diacritica/32/5604_2.png) [@diacritica](https://community.penpot.app/u/diacritica)\
**Post date:** [January 25, 2024, 1:39pm UTC](https://community.penpot.app/t/gnome-application-launcher-for-local-penpot-installation/4371/2 "2024-01-25T13:39:57Z")

</div>

Thanks Manuel! I tried it and works like a charm.  
I think you can forgo $HOME and stick to GNOME friendly ~/ instead.

It would be nice to encapsulate this in a small package that could be installed as a “proxy” for the actual installation, don’t you think?  
Nice work!

---

<div class="post-metadata">

**Author:** ![manuel](https://dub1.discourse-cdn.com/flex017/user_avatar/community.penpot.app/manuel/32/3928_2.png) [@manuel](https://community.penpot.app/u/manuel)\
**Post date:** [January 25, 2024, 4:26pm UTC](https://community.penpot.app/t/gnome-application-launcher-for-local-penpot-installation/4371/3 "2024-01-25T16:26:04Z")

</div>

> [@diacritica](#):
>
> It would be nice to encapsulate this in a small package

Theoretically yes 😄 Practically I already tried it, piled up errors, and decided I’d need to throw too much time at this right now without having another use case… Happy though if someone has more expertise already and wants to improve it in any way!

---

<div class="post-metadata">

**Author:** ![Zeno394](https://avatars.discourse-cdn.com/v4/letter/z/a8b319/32.png) [@Zeno394](https://community.penpot.app/u/Zeno394)\
**Post date:** [January 26, 2024, 2:23am UTC](https://community.penpot.app/t/gnome-application-launcher-for-local-penpot-installation/4371/4 "2024-01-26T02:23:14Z")

</div>

Hi,  
Very much glad to hear this.  
Which 3 files and where to find these files?  
I use Debian based MX linux with Xfce desktop environment.  
Will it work for me? I want to install PenPot locally.  
Can we use Podman for any better?  
Thanks

---

<div class="post-metadata">

**Author:** ![manuel](https://dub1.discourse-cdn.com/flex017/user_avatar/community.penpot.app/manuel/32/3928_2.png) [@manuel](https://community.penpot.app/u/manuel)\
**Post date:** [January 26, 2024, 11:57am UTC](https://community.penpot.app/t/gnome-application-launcher-for-local-penpot-installation/4371/5 "2024-01-26T11:57:57Z")

</div>

> [@Zeno394](#):
>
> I use Debian based MX linux with Xfce desktop environment.  
> Will it work for me? I want to install PenPot locally.

Hey @Zeno394 I’m afraid all this does is adding a desktop launcher to the GNOME desktop. So one can launch Penpot using a default UI interaction in GNOME, rather than typing a command.

It doesn’t do the local installation of Penpot as such. Nor will it work on a different Linux desktop environment other than GNOME.
