From 106320ab118b2279e342f77d6e31c5417cb54f18 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 12 Aug 2026 15:56:40 +0200 Subject: [PATCH] Install ChatGPT as a desktop app under Install > AI (#6747) Drops the ChatGPT web app from the default set at the same time, so installing the openai-codex-desktop package can't leave two identical-looking ChatGPT entries in the launcher. Super + Shift + A still opens the web version, which is the only place it was really used. The bundled ChatGPT icon stays: the package's own chatgpt.desktop asks for Icon=chatgpt and ships no hicolor icon of its own. Co-authored-by: Claude Opus 5 (1M context) --- applications/ChatGPT.desktop | 8 -------- bin/omarchy-install-ai-chatgpt | 15 +++++++++++++++ default/omarchy/omarchy-menu.jsonc | 1 + 3 files changed, 16 insertions(+), 8 deletions(-) delete mode 100644 applications/ChatGPT.desktop create mode 100755 bin/omarchy-install-ai-chatgpt diff --git a/applications/ChatGPT.desktop b/applications/ChatGPT.desktop deleted file mode 100644 index 2ec04673..00000000 --- a/applications/ChatGPT.desktop +++ /dev/null @@ -1,8 +0,0 @@ -[Desktop Entry] -Version=1.0 -Name=ChatGPT -Exec=omarchy-launch-webapp https://chatgpt.com/ -Terminal=false -Type=Application -Icon=chatgpt -StartupNotify=true diff --git a/bin/omarchy-install-ai-chatgpt b/bin/omarchy-install-ai-chatgpt new file mode 100755 index 00000000..8986e8ed --- /dev/null +++ b/bin/omarchy-install-ai-chatgpt @@ -0,0 +1,15 @@ +#!/bin/bash + +# omarchy:summary=Install the ChatGPT desktop app +# omarchy:requires-sudo=true + +set -e + +echo "Installing ChatGPT..." +omarchy-pkg-add openai-codex-desktop + +echo "Opening ChatGPT..." +setsid uwsm-app -- /usr/bin/chatgpt >/dev/null 2>&1 & + +echo "" +echo "ChatGPT has been installed." diff --git a/default/omarchy/omarchy-menu.jsonc b/default/omarchy/omarchy-menu.jsonc index 44ed3bd9..719607d0 100644 --- a/default/omarchy/omarchy-menu.jsonc +++ b/default/omarchy/omarchy-menu.jsonc @@ -227,6 +227,7 @@ "install.terminal.foot": {"icon":"","label":"Foot","when":"! omarchy-pkg-present foot","action":"omarchy-launch-floating-terminal-with-presentation 'omarchy-install-terminal foot'"}, "install.terminal.ghostty": {"icon":"","label":"Ghostty","when":"! omarchy-pkg-present ghostty","action":"omarchy-launch-floating-terminal-with-presentation 'omarchy-install-terminal ghostty'"}, "install.terminal.kitty": {"icon":"","label":"Kitty","when":"! omarchy-pkg-present kitty","action":"omarchy-launch-floating-terminal-with-presentation 'omarchy-install-terminal kitty'"}, + "install.ai.chatgpt": {"icon":"󱚤","label":"ChatGPT Desktop","when":"! omarchy-pkg-present openai-codex-desktop","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-ai-chatgpt"}, "install.ai.dictation": {"icon":"","label":"Dictation","when":"! omarchy-pkg-present voxtype-bin","action":"omarchy-launch-floating-terminal-with-presentation omarchy-voxtype-install"}, "install.ai.lm-studio": {"icon":"󱚤","label":"LM Studio","when":"! omarchy-pkg-present lmstudio-bin","action":"omarchy-install-app 'LM Studio' lmstudio-bin"}, "install.ai.ollama": {"icon":"󱚤","label":"Ollama","when":"! omarchy-cmd-present ollama","action":"if omarchy-cmd-present nvidia-smi; then ollama_pkg=ollama-cuda; elif omarchy-cmd-present rocminfo; then ollama_pkg=ollama-rocm; else ollama_pkg=ollama; fi; omarchy-install-app Ollama \"$ollama_pkg\""},