Nokse22 / Exhibit

3D model viewer for the GNOME desktop powered by f3d
https://flathub.org/apps/io.github.nokse22.Exhibit
GNU General Public License v3.0
87 stars 10 forks source link

exhibit flatpak associates with more file types than needed #33

Closed rezad1393 closed 2 months ago

rezad1393 commented 2 months ago

when I install or even update it, the app associates with files types that are not related to the app.

the more obvious onesare mp4 video types and octect-unknown type (which is any file not associated to be opened by anything)

Nokse22 commented 2 months ago

The app associate with application/octet-stream because I allow to try and open any type of file, on my system if I do open with there are a lot of available applications for any file type.

The mp4 video is strange could you run xdg-mime query filetype filename.mp4 to see what mime type it is?

For reference these are all the mime type the app associates with, some of them are installed by the app from this file:

application/gml+xml
application/octet-stream
application/prs.wavefront-obj
application/vnd.3ds
application/vnd.abc
application/vnd.brep
application/vnd.dae
application/vnd.drc
application/vnd.exodus
application/vnd.fbx
application/vnd.ms-3mfdocument
application/vnd.off
application/vnd.ply
application/vnd.pts
application/vnd.splat
application/vnd.step
application/vnd.usd
application/vnd.usdc
application/vnd.vdb
application/vnd.vdbMimeType=text/plain
application/vnd.vti
application/vnd.vtk
application/vnd.vtm
application/vnd.vtp
application/vnd.vtr
application/vnd.vts
application/vnd.vtu
application/vnd.x
image/tiff
image/vnd.dxf
image/x-3ds
model/3mf
model/gltf+json
model/gltf-binary
model/gltf-json
model/iges
model/obj
model/step
model/stl
model/vnd.usda
model/vnd.usdz+zip
model/x-other
text/plain
text/vnd.abc
rezad1393 commented 2 months ago

The mp4 video is strange could you run xdg-mime query filetype filename.mp4 to see what mime type it is? video/mp4

The app associate with application/octet-stream because I allow to try and open any type of file, on my system if I do open with there are a lot of available applications for any file type.

I didn't quite get that, but I think you meant you need it on your personal computer so you don't have to go through list of app every time you want to open a file with this app.

but this makes life hell for others. there are a lot of files that are application/octet-stream and double clicking on them would open them with this app which is not a good thing.

the app should not be set to open a file that is not know to it and if a user want to they can open it manually.

Nokse22 commented 2 months ago

I didn't quite get that, but I think you meant you need it on your personal computer so you don't have to go through list of app every time you want to open a file with this app.

I meant just as an alternative between all the other apps

You're right, I should be able to remove application/octet-stream because I have installed all the possible mime type.

What kind of files do you have that are application/octet-stream for curiosity?

Nokse22 commented 2 months ago

Still strange it opens mp4 even if it has the correct mime type

rezad1393 commented 2 months ago

Still strange it opens mp4 even if it has the correct mime type

should I say told you so? I think it also opened other videos file or image file (I don't remember) and I removed them in last installs. what I do remember is that it set itself as one of the apps for a lot of mimes that were NOT related to it.

You're right, I should be able to remove application/octet-stream because I have installed all the possible mime type.

thanks.

What kind of files do you have that are application/octet-stream for curiosity?

I don't remember right now but one was a 'file.bash' bash script.

Nokse22 commented 2 months ago

I have removed it 7032601

rezad1393 commented 2 months ago

I have removed it 7032601

was mp4 (and maybe others) issue is gonna be fixed too?

Nokse22 commented 2 months ago

I don't know because I can't reproduce it. Maybe on your computer there were no apps that registered to open some files so Exhibit was the only available option, then it should

rezad1393 commented 1 month ago

I got a flatpak update of this app and again this app associated itself with unknown filetype.

Nokse22 commented 1 month ago

What do you mean unknown? Do they have a mime type using the command mentioned in a previous message? If I can understand exactly what mime type they are it might be useful.

rezad1393 commented 1 month ago

What do you mean unknown? Do they have a mime type using the command mentioned in a previous message? If I can understand exactly what mime type they are it might be useful.

I again forgot to check which file it was but they are usually torrent download incomplete files.

but right now this file is also associated with: RAR archive data, v4, os: Win32, flags: RecoveryRecordPresent

also it is associated with: pdfs,mp3,ogg files. plains text files. like this file: ./1.spc: Unicode text, UTF-8 text, with very long lines (1926)

rezad1393 commented 1 month ago

even executables..... Screenshot_20240928_234549-1

Nokse22 commented 1 month ago

What is the mime type using xdg-mime query filetype?

rezad1393 commented 1 month ago

What is the mime type using xdg-mime query filetype?

xdg-mime query filetype magnetico
application/x-executable

rezad1393 commented 1 month ago

why this app associate with ./1.spc: Unicode text, UTF-8 text, with very long lines (1926) mp3s? pdfs?

I removed this app until this get fixed. it is a good app for simple viewing 3d model, but it messes with my filetypes a lot.

Nokse22 commented 1 month ago

I really don't know, you can check yourself the mime types the app associates with. Maybe there is a bug somewhere else.

rezad1393 commented 1 month ago

I really don't know, you can check yourself the mime types the app associates with. Maybe there is a bug somewhere else.

how do I do that ? it is a flatpak app.

Nokse22 commented 1 month ago

I am releasing a new version, maybe it gets fixed now.

rezad1393 commented 1 month ago

I am releasing a new version, maybe it gets fixed now.

did you find the cause? if not then it will be like last time.

but I will wait and after new version I re-install it so maybe it gets fixed....

Nokse22 commented 1 month ago

I accidentally added octet-stream back in another commit after removing it :facepalm:, but if this doesn't fix the issue I don't know what to do

rezad1393 commented 1 month ago

did the new release fixed it? I dont see the bug anymore.

Nokse22 commented 1 month ago

Yes, the new release fixed it. Good to know!