Imagine you found a cool text editor like Pulsar and downloaded it in the AppImage format. You enjoy using it and now want to make it the default application for markdown files.Now click on the “Move to app menu” button.In the next window, you can start typing the name of the application to begin a search. It will also show you the AppImage program you integrated with the desktop previously.Click on the Unlock button in Gear Lever.
Table of Contents
Step 1: Create a desktop entry for AppImage
Gear Lever is available as a Flatpak package from FlatHub. I know. Another package format, but that’s how it is.That’s a problem, right? But it can be easily fixed by creating a desktop entry for that AppImage application.You right-click on the file and click ‘open with’ option, but here, you don’t see the Pulsar listed here.Anyway, if you have Flatpak support enabled, install Gear Lever with this command:

I hope this quick little tip helps you enjoy your AppImages 😄

The very first step is to create a desktop file for the AppImage application. Here, we will use the Gear Lever app to create the desktop entry.

The easiest way to achieve is through the File Manager.

Once you spot the app, click on it to select and then enable the “Always use for this file type” toggle button. Then click Open as shown in the screenshot below.
Step 2: Setting default app through file manager
If you click on the drop-down menu corresponding to a category in settings, you can select an app. The AppImage app will also be listed here. In the screenshot above, you can see Vivaldi AppImage is set as the default browser.Given you have created the AppImage desktop entry following the first step, open the system settings in Ubuntu.Great! So we have the application integrated in the desktop. Let’s move to the second step.

A lot of AppImage ‘issue’ or should I say shortcomings, can be solved by desktop integration. It surprises me that AppImage doesn’t provide an official way of doing these things.

Here, set the apps for categories you want.

Well, we have the wonderful open source developers that help us by creating helpful utilities like Gear Lever here.

Alternative method: Change apps from settings
For Linux Mint users, you can set it using the Preferred Application settings.Go to Apps → Default Apps.flatpak install flathub it.mijorus.gearlever
Let’s say you want to open all your .txt text files in the Pulsar editor.

Set Default Browser
Let’s say you have an AppImage for applications like Web Browser, Music Player, etc. These can be changed from the system settings.That’s it. From now on, your file will be opened in the AppImage of your choice. To verify this, you can right-click on the file. The first entry on the context menu will be the name of your AppImage application. In this case, Pulsar.

Conclusion
Let me show you how to do that. Open the file manager and right-click on the file of your choice. Now select the Open With option.Verify everything is ok by searching for the app in the system menu.