https://bugs.kde.org/show_bug.cgi?id=463695

--- Comment #14 from Prajna Sariputra <putr...@gmail.com> ---
> Is Spectacle being run from the same prefix as kwin_wayland? If you're using 
> /usr/bin/kwin_wayland, you have to use /usr/bin/spectacle.

It appears this applies not only to the location of the binary itself but also
the path in the `Exec` field of the desktop file. I can reproduce the issue (as
in the same behaviour exhibited by Spectacle) if I copy the
`/usr/share/applications/org.kde.spectacle.desktop` file to
`~/.local/share/applications` and changing the `Exec` field to just say
`spectacle`, and if I change that back to `/usr/bin/spectacle` then Spectacle
starts working again.

The weird part about it though is that the original desktop file already had
the correct contents for the `Exec` line, and there was nothing Spectacle
related in my `~/.local/share/applications` folder, so if I had to guess the
reason I encountered the issue back in comment 3 and why the downgrade of
Spectacle back then made the problem go away is that the desktop file database
was corrupt somehow and the package downgrade also refreshed that database
(there is a step saying "Updating the desktop file MIME type cache...", which
under the hood runs the `update-desktop-database` command). Spectacle did start
exhibiting the issue again today, and this time reinstalling Spectacle made the
issue go away, which I think supports my theory of the desktop file database
being corrupt in my case causing issues, and is also why I came back to this
bug report.

Also, through this whole period (of Spectacle breaking, then fixing itself,
breaking again and fixing itself again for me) Ksnip didn't work the entire
time unless using the portal method, but the difference appears to be that
Ksnip's desktop file only had `ksnip` in its `Exec` field, applying the same
change as I did with Spectacle for testing (changing that `Exec` field to say
`/usr/bin/ksnip`) also made Ksnip start working again.


TL;DR: Make sure there is nothing Spectacle related in
`~/.local/share/applications` and run `update-desktop-database` in a terminal
(install the `desktop-file-utils` package if you don't have that command),
might fix the issue with Spectacle.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to