In settings>default applications e.g. kodi does not show up a video default application. I insatalled kodi just before.
Can I make a Flathub application a default application?
Yes, you can set a Flathub application like Kodi as a default application for specific file types, but it might not show up directly in the default applications settings. Here’s how you can set it:
- Open the File Manager: Navigate to a file type you want to associate with Kodi (e.g., a video file).
- Right-Click on the File: Select the file and right-click it.
- Select Properties: In the context menu, choose "Properties."
- Open the "Open With" Tab: Look for a tab that says "Open With."
- Select Kodi: If Kodi is listed there, select it. If not, you might need to add it manually.
- Set as Default: Once selected, look for an option to set it as the default application for that file type.
Hi, thx for support. Kodi is not listed there. How can I add it manually?
I think the issue here is that Kodi is not designed to open individual files, that's why it's not appearing as an option.
You can manually edit the entry to launch it, so that it can accept individual files, and that will bring it up as an available option. You also need to create a file association between the file type by extension, and the launcher.
This is the kind of thing that is much faster on the terminal, so I'll be using that. You can launch a terminal from the main application menu.
-
Create a copy of the original
.desktop
file.sudo cp /var/lib/flatpak/app/tv.kodi.Kodi/current/active/files/share/applications/tv.kodi.Kodi.desktop /usr/share/applications/kodi.desktop
-
Edit the copy to make read input files:
sudo sed -i "s/Exec=kodi$/Exec=kodi %f/" /usr/share/applications/kodi.desktop
-
Create a new file type association for Kodi.
# Change "ursus" for your actual username in your computer. gedit /home/ursus/.config/mimeapps.list
This will bring up a text editor to edit the file in question. Add a new entry that looks like this:
[Added Associations] video/webm=kodi.desktop; video/mp4=kodi.desktop; video/mpeg=kodi.desktop;
Note that you need to add a new entry for every file type that you would like Kodi to be able to edit. Just add them under the
[Added Associations]
section.
After saving the file, it should appear:
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.