Celeb Glow
general | March 23, 2026

How to associate a file with a newly installed app on tablet?

How to associate a particular type of file with a newly installed app on the tablet ("Open with...")? I would like to open .epub files with Beru app automatically but I cannot find the way how to do it.

2 Answers

For a particular mime types default handling application you'd want to look in

/usr/share/applications/defaults.list

This file contains the default applications for all handled mime types.

If an application isn't configured to open a file at all (not only as the default application for that type of file), you'd need to look in its desktop entry in

/usr/share/applications

To add it where appropriate. These desktop files are also used in the defaults.list, where the format is:

handlerType/fileMetaType=desktopentry.desktop

handlerType is the type of handler, e.g a binary file will have "application" because it will be specific to an application, while a common mp4 file would have "video" as the mime type, a text file "text", and so on. The fileMetaType is the specific file type, such as a pdf of binary format which would have the fileMetaType of "pdf". desktopentry.desktop is simply the desktop entry of the file you're using to open that application. These terms are probably not what are widely used, but I'm using them to hopefully better explain what the things mean. Let me know if anything isn't clear.

7

I had the same problem which I solved as follows: - Right click on the file - Select "Properties" - Select tab "Open With" - Select the application you want to open with - Click "Add"

That's all

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy