Gnome integration problems after update to 1.13.7 on Ubuntu Noble

Steps to reproduce

Update Obsidian snap or wait for System to auto-update.

Did you follow the troubleshooting guide? [Y/N]

Not really relevant here, but Y I read it.

Expected result

New version should behave as before, get an Icon and be findable in the dash.

Actual result

Dock icon is gone, obsidian not in dash but can be launched via snap run obsidian. Can be repaired partially by copying the desktop file from /var/lib/snapd/desktop/applications/ to ~/.local/share/applications. This makes it visible in dash. But then the launched app does only get a generic icon in dock and can’t be pinned.

Environment

SYSTEM INFO:
Obsidian version: 1.13.7
Installer version: 1.13.7
Operating system: #137-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 17 20:28:23 UTC 2026 6.8.0-137-generic
Login status: not logged in
Language: de
Insider build toggle: off
Live preview: on
Base theme: dark
Community theme: Everforest 0.0.0
Snippets enabled: 1
Restricted mode: off
Plugins installed: 9
Plugins enabled: 9
1: Calendar v1.5.10
2: Importer v1.8.12
3: Emoji Shortcodes v2.2.0
4: Table of Contents v0.2.0
5: Slides Extended v2.3.7
6: Tag Wrangler v0.6.4
7: Periodic Notes v0.0.17
8: Style Settings v1.0.9
9: Update modified date v1.5.4

Distro Name: Ubuntu
Distro Version:26.04 Noble Numbat
Desktop Environment: GNOME
Installation method used: Snap


Additional information

When reverting to previous version everything works as expected.

I think you may have a wrong .desktop file somewhere that is taking precedence over the one in /var/lib/snapd/desktop/applications/ .

Which previous versions works exactly? 1.13.6, 1.13.4?

I am having the same issue as well - as far as I can tell there is no conflicting .desktop file. Is this a known issue?

Which distro do you have?

What installation method did you use?

I am using Ubuntu 24.04.4 LTS and installed via snap.

Which issue do you have exactly? Can you post some screenshot or screen recording?

What is the output of obsidian’s show debug info?

When I launch the app, instead of the standard obsidian logo, I get the generic “gear” icon. This happens when I launch it from my apps or from a terminal. This means that it doesn’t appear as an obsidian window. Further, I have noticed that spellcheck has been disabled, despite having it explicitly turned on in settings. These issues only started very recently, so I assume it has to do with the recent update.

The debug output:
SYSTEM INFO:
Obsidian version: 1.13.7
Installer version: 1.13.7
Operating system: #28~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 1 15:50:57 UTC 2 7.0.0-28-generic
Login status: not logged in
Language: en-GB
Insider build toggle: off
Live preview: on
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none

Photo below of my doc - I currently have obsidian open but it is not recognising it as obsidian, hence the gear icon. I do not think I have any conflicting .desktop files.

image

Below is my obsidian.desktop file:

[Desktop Entry]
X-SnapInstanceName=obsidian
Name=Obsidian
X-SnapAppName=obsidian
Exec=/snap/bin/obsidian %U
Terminal=false
Type=Application
Icon=/snap/obsidian/current/meta/gui/obsidian.png
StartupWMClass=md.obsidian.Obsidian
Comment=Obsidian
MimeType=x-scheme-handler/obsidian;
Categories=Office;

I have now pinned obsidian to my dock, and opened it. As you can see, despite having it open, it doesn’t show that obsidian is open but rather spawns one of these “gear” icons instead.

image

And where is this coming from? Where is this file located?

I have the same problem on Ubuntu 26.04, have the same content of the obsidian_md.obsidian.Obsidian.desktop file which, in my case, is located in:
/var/lib/snapd/desktop/applications/obsidian_md.obsidian.Obsidian.desktop

Obsidian in my dock looks like this:

So currently:

  1. When Obsidian is not opened, clicking the Obsidian icon opens it, but application is displayed as “something else” in the dock. So I can’t use keyboard shortcut to access it.
  2. When Obsidian is already opened, clicking the Obsidian icon opens the “setup” menu:

Same exact problem here with the 1.13.7 snap version of Obsidian running on Ubuntu 26.04. It was working fine before the latest update.

/snap/obsidian/current/meta/gui

Disclaimer: This analysis and write-up were produced with the help of Claude, which inspected my system and the GNOME/mutter sources. I am posting it after reviewing the reasoning as best I can, and I can confirm first-hand that the workaround below fixes the icon on the Alt+Tab switcher on my machine, but I am not an expert in this area (GNOME internals, desktop integration).

I hit the same problem (Ubuntu 24.04, GNOME Shell 46, X11 session, Obsidian
snap 1.13.7) and dug into the root cause. It doesn’t seem to be a conflicting desktop file,
and not a Wayland bug, since it happens on X11 too. It is likely a clash between the
new desktop file name inside the snap and the way GNOME identifies snap
windows.

What changed in 1.13.x

The Electron/electron-builder upgrade brought two intentional changes:

  1. Electron now sets the window’s WM_CLASS to the reverse-DNS app id
    (github.com/electron/electron/pull/51424). The main window’s class
    is now md.obsidian.Obsidian instead of Obsidian.
  2. electron-builder now names the Linux desktop file after the app id. The snap now ships
    meta/gui/md.obsidian.Obsidian.desktop instead of meta/gui/obsidian.desktop.

For deb, AppImage and flatpak installs this is an improvement: the desktop
file name and the window class now match exactly. The snap is the exception.

Why it breaks only the snap on GNOME

snapd exports desktop files under the name <snapname>_<original-basename>.desktop.
So the system now has obsidian_md.obsidian.Obsidian.desktop where it
previously had obsidian_obsidian.desktop.

GNOME does not trust WM_CLASS for sandboxed apps. Mutter reads the AppArmor
label of the window’s process (/proc/<pid>/attr/current contains
snap.obsidian.obsidian) and translates it to the desktop id
obsidian_obsidian (see meta_window_update_snap_id in gitlab.gnome.org/GNOME/mutter/-/blob/46.0/src/core/window.c). GNOME
Shell then requires a desktop file named exactly obsidian_obsidian.desktop,
which no longer exists.

The exported desktop file does contain a correct
StartupWMClass=md.obsidian.Obsidian that matches the window, but for
sandboxed windows GNOME Shell only accepts a WM_CLASS match if the desktop
file name starts with the sandbox id plus a dot (check_app_id_prefix in gitlab.gnome.org/GNOME/gnome-shell/-/blob/46.0/src/shell-window-tracker.c).
obsidian_md.obsidian.Obsidian.desktop does not start with
obsidian_obsidian., so the match is discarded. With all heuristics
exhausted, the shell falls back to a placeholder app: raw class name in
Alt+Tab, generic gear icon, and no working pinning.

The app grid entry stays correct because it reads the desktop file directly
and never needs to match a live window.

How to verify

# The exported desktop file name no longer matches what GNOME expects
ls /var/lib/snapd/desktop/applications/ | grep -i obsidian

# The desktop file inside the snap is now named after the app id
ls /snap/obsidian/current/meta/gui/

# The AppArmor label GNOME derives the expected name from
cat /proc/$(pgrep -f '/snap/obsidian.*app/obsidian$' | head -1)/attr/current

Workaround (tested, works for me)

Create a user-local desktop file with the exact name GNOME is looking for.
NoDisplay=true avoids a duplicate menu entry; the window tracker still finds
the file because that lookup does not filter hidden entries.

cat > ~/.local/share/applications/obsidian_obsidian.desktop <<'EOF'
[Desktop Entry]
Name=Obsidian
Exec=/snap/bin/obsidian %U
Terminal=false
Type=Application
Icon=/snap/obsidian/current/meta/gui/obsidian.png
StartupWMClass=md.obsidian.Obsidian
NoDisplay=true
Comment=Obsidian
Categories=Office;
EOF

Then fully quit and reopen Obsidian (the shell caches the window-to-app
mapping per window). Alt+Tab then shows the correct name and icon again. The
file can simply be deleted once the packaging is fixed.

Suggested fix on the packaging side

Keep the desktop file inside the snap named obsidian.desktop (for example by
overriding desktopName for the snap target in electron-builder), so snapd
exports it as obsidian_obsidian.desktop again. The reverse-DNS name is the
right choice for deb/AppImage/flatpak, but snaps on GNOME need
<snapname>_<appname>.desktop.

Just a couple of minor additions (it seems I can’t edit my previous post).

  1. When I say the Alt+Tab switcher, I actually mean the Super+Tab switcher
  2. I checked that I didn’t have any conflicting desktop file with:
$ sudo find / -iname "*obsidian*.desktop"
/var/lib/snapd/desktop/applications/obsidian_md.obsidian.Obsidian.desktop
/snap/obsidian/66/meta/gui/md.obsidian.Obsidian.desktop
/snap/obsidian/67/meta/gui/md.obsidian.Obsidian.desktop
/home/myuser/.local/share/applications/obsidian_obsidian.desktop

The file in my home is the workaround mentioned in my previous post. The others are all snap-based

The similar problem in kde after updating to latest version.

Did it also disable your spell check?

Spellcheck is a documented Electron issue: Issue · GitHub, which is just fixed two weeks ago. Requesting Obsidian team updating to latest Electron 43 could fix it.

Regarding the Gnome dock icon bug, I guess it is also caused by Electron changes. The exact same issue has been experienced by a group of Nix package maintainers months ago: obsidian: Appears as "electron" After Launch · Issue #505078 · NixOS/nixpkgs · GitHub. I think this bug is fixable at Obsidian side.