omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

The chromium.desktop file became corrupted after the latest stable update

Open Riddlerrr opened this issue 9 months ago • 18 comments

System details

Omarchy stable 3.3.3

What's wrong?

After latest update I can't find the Chromium in the Walker menu and other Web Apps can't not be run. But chromium CAN be run from terminal command.

It turns out the file /usr/share/applications/chromium.desktop is corrupted and include not replaced template changes.

For example:

Image Image

I'm not sure if it's a problem with omarchy or chromium itself.

Riddlerrr avatar Feb 12 '26 09:02 Riddlerrr

I can confirm replacing the chromium.desktop file with a previous version fixed my Chrome desktop file, and fixed everything for me while they have a look at the problem

Hope that helps.

~ ❯ diff chromium.desktop.backup chromium.desktop. original.broken 3c3 < Name=Chromium

Name=@@MENUNAME 108c108 < Exec=/usr/bin/chromium %U


Exec=/usr/bin/@@usr_bin_symlink_name %U 111c111 < Icon=chromium


Icon=@@PACKAGE 114c114 < MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https;


MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https;@@uri_scheme 115a116 @@extra_desktop_entries 169c170 < Exec=/usr/bin/chromium


Exec=/usr/bin/@@usr_bin_symlink_name 221c222 < Exec=/usr/bin/chromium --incognito


Exec=/usr/bin/@@usr_bin_symlink_name --incognito.

1r0n-ZA avatar Feb 12 '26 10:02 1r0n-ZA

Same issue here. I noticed with more application that issue exists. When trying to start "Discord", I get the same error.

I'm on Omarchy 3.3.3, stable channel.

Why are these changes on the stable channel?

cmdrrobin avatar Feb 12 '26 12:02 cmdrrobin

@1r0n-ZA Can you please show fix instructions?

kvazzie avatar Feb 12 '26 13:02 kvazzie

@Wannabeloved you have to:

  • replace @@MENUNAME with Chromium
  • replace @@usr_bin_symlink_name with chromium
  • replace @@PACKAGE with chromium
  • remove @@extra_desktop_entries
  • remove @@uri_scheme

Ceereals avatar Feb 12 '26 13:02 Ceereals

confirm bug.

royalhanzo avatar Feb 12 '26 13:02 royalhanzo

For those who are still facing this issue, use the following command to fix it:

sudo sed -i \
  -e 's/@@MENUNAME/Chromium/g' \
  -e 's/@@usr_bin_symlink_name/chromium/g' \
  -e 's/@@PACKAGE/chromium/g' \
  -e 's/@@uri_scheme//g' \
  -e '/^@@extra_desktop_entries/d' \
  /usr/share/applications/chromium.desktop

midsphere-digital-ocean avatar Feb 12 '26 13:02 midsphere-digital-ocean

For those who are still facing this issue, use the following command to fix it:

sudo sed -i \
  -e 's/@@MENUNAME/Chromium/g' \
  -e 's/@@usr_bin_symlink_name/chromium/g' \
  -e 's/@@PACKAGE/chromium/g' \
  -e 's/@@uri_scheme//g' \
  -e '/^@@extra_desktop_entries/d' \
  /usr/share/applications/chromium.desktop

Can confirm this issue on a completely fresh install - did a full wipe and manual installation of Arch + Omarchy today, and the chromium.desktop file shipped broken from the start. So it's not just the update path, the package on the Omarchy repo itself has the unsubstituted placeholders.

The sed fix from @midsphere-digital-ocean works, but note it will likely get overwritten on the next omarchy-update until the package is rebuilt on the repo side.

fabianhug avatar Feb 12 '26 14:02 fabianhug

here's a summary to reproduce in case @dhh wants to have a look/reroute

System details

Fresh manual installation of Arch Linux + Omarchy (via curl -fsSL https://omarchy.org/install | bash) on a dual-boot system.

What's wrong?

The chromium package from the Omarchy Package Repository (pkgs.omarchy.org) ships with unsubstituted build template placeholders in /usr/share/applications/chromium.desktop. This causes omarchy-launch-browser (and the Super + B keybinding) to fail with:

Error: Path "/usr/bin/@@usr_bin_symlink_name" does not exist!

The Omarchy menu also displays @@MENUNAME instead of "Chromium" in the application list.

Affected file

/usr/share/applications/chromium.desktop contains the following broken placeholders:

  • Exec=/usr/bin/@@usr_bin_symlink_name (should be /usr/bin/chromium)
  • Name=@@MENUNAME (should be Chromium)
  • Icon=@@PACKAGE (should be chromium)
  • @@uri_scheme appended to MimeType
  • @@extra_desktop_entries at end of file

Reproduction

  1. Install Omarchy via the manual installation method (or ISO - likely the same result)
  2. Press Super + B to launch browser → fails with the error above
  3. Open Omarchy menu (Super + Alt + Space) → shows @@MENUNAME instead of Chromium
  4. Inspect the file: grep "@@" /usr/share/applications/chromium.desktop

Notes

  • This persists across a complete wipe and fresh reinstall - the issue is in the packaged .desktop file on the Omarchy repo, not a local build/config problem.
  • which chromium returns /usr/bin/chromium correctly - the browser binary itself is fine.
  • xdg-settings get default-web-browser returns chromium.desktop correctly.
  • grep "@@" $(which omarchy-launch-browser) returns nothing - the launch script is fine, it's the .desktop file it reads that's broken.

Workaround

Manually replace the placeholders:

sudo sed -i 's|@@usr_bin_symlink_name|chromium|g' /usr/share/applications/chromium.desktop
sudo sed -i 's|@@MENUNAME|Chromium|g' /usr/share/applications/chromium.desktop
sudo sed -i 's|@@PACKAGE|chromium|g' /usr/share/applications/chromium.desktop
sudo sed -i 's|@@uri_scheme||g' /usr/share/applications/chromium.desktop
sudo sed -i 's|@@extra_desktop_entries||g' /usr/share/applications/chromium.desktop

Note: These fixes will likely be overwritten on the next omarchy-update or pacman -Syu if the package on the repo isn't fixed.

fabianhug avatar Feb 12 '26 14:02 fabianhug

Thank you for this sed command. Now chromium has shown up in walker and is working like before.

For those who are still facing this issue, use the following command to fix it:

sudo sed -i \
  -e 's/@@MENUNAME/Chromium/g' \
  -e 's/@@usr_bin_symlink_name/chromium/g' \
  -e 's/@@PACKAGE/chromium/g' \
  -e 's/@@uri_scheme//g' \
  -e '/^@@extra_desktop_entries/d' \
  /usr/share/applications/chromium.desktop

devyashtanwar avatar Feb 12 '26 16:02 devyashtanwar

THank you for posting the sed command to fix it.

yzxbmlf avatar Feb 12 '26 19:02 yzxbmlf

For those who are still facing this issue, use the following command to fix it:

sudo sed -i \
  -e 's/@@MENUNAME/Chromium/g' \
  -e 's/@@usr_bin_symlink_name/chromium/g' \
  -e 's/@@PACKAGE/chromium/g' \
  -e 's/@@uri_scheme//g' \
  -e '/^@@extra_desktop_entries/d' \
  /usr/share/applications/chromium.desktop

Tnks bro, same bug here!

phplemos avatar Feb 12 '26 19:02 phplemos

> sudo sed -i \
>   -e 's/@@MENUNAME/Chromium/g' \
>   -e 's/@@usr_bin_symlink_name/chromium/g' \
>   -e 's/@@PACKAGE/chromium/g' \
>   -e 's/@@uri_scheme//g' \
>   -e '/^@@extra_desktop_entries/d' \
>   /usr/share/applications/chromium.desktop

This also fixed it for me. Well done on the quick fix.

west-matt avatar Feb 12 '26 22:02 west-matt

Confirming both the problem (this morning's omarchy-update broke my access to browser from the Omarchy menu) and the fix posted upthread working to correct it. And, yes, I'm on the master branch, nothing exotic.

ahd avatar Feb 13 '26 02:02 ahd

Same issue - Fresh install, 3.3 iso straight into update. Rollbacks did not work. west-matt's fix did not work. Reinstalling.

Hour 1 on Linux. All good. Chef's choice was for the OS to break immediately. No free will.

jaykayo avatar Feb 13 '26 06:02 jaykayo

Hi everyone, I've been using a slightly different method to access Chromium until the problem is resolved directly in a future omarchy-update. It's a temporary solution until the problem is fixed and also avoids using any separate commands.

I simply use the name google in the applications menu, and this redirection opens Chromium.

It's a basic way until the problem is actually solved.

https://github.com/user-attachments/assets/6f88b55f-297b-43a4-887a-7816ce844add

felipeparaizoo avatar Feb 13 '26 12:02 felipeparaizoo

A hotfix migration has been pushed for master to switch from the Omarchy Chromium fork to the mainline Chromium release. This fixes the issue. We no longer needed a fork now that all theme support has been accepted upstream. If you run Update > Omarchy you should get this. Sorry for the trouble!

dhh avatar Feb 13 '26 17:02 dhh

Why we are using Chromium , why not firefox

inxeoz avatar Feb 17 '26 04:02 inxeoz

Updated again after the hotfix and it didn't help, also tried reinstalling and didn't work either

NeevTheDeev avatar Feb 18 '26 08:02 NeevTheDeev