Custom Application not showing in "Open With" dialog

Hi guys,

I wrote a bash script to handle *.acsm files. Then I wrote a *.desktop file to make it available as an application. It's called /usr/share/applications/acsmhandler.desktop and contains:

[Desktop Entry]
Version=1.0
Type=Application
Terminal=true
Exec=/usr/local/bin/acsm_handler.sh
Name=ACSM Handler
MimeType=application/acsm;application/x-acsm
Categories=Utility;

It's marked as executable:
-rwxrwxr-x 1 root root 234 Nov 27 11:54 /usr/share/applications/acsmimporter.desktop

When I search for the application, it's found and I can start it without problems:

But I can't select it in the "Open With" dialog:

I also added a specific MIME Type for *.acsm files. It seems to be associated with my file correctly, but still the application is not linked to this file.
image

What am I missing here?
Thanks for the help!

Welcome to the Forum!

Did You rebooted and tried it then?

Try running:
sudo update-desktop-database
and reboot

1 Like

Thanks, that fixed it! I tried rebooting before without any luck.
sudo update-desktop-database worked instantly without a reboot.

You are welcome. Please mark the solution to show your thread is solved.