Make Prsuaslicer default app for .3mf files in Ubuntu (Linux)?
 
Notifications
Clear all

Make Prsuaslicer default app for .3mf files in Ubuntu (Linux)?  

  RSS
yossarianmtu
(@yossarianmtu)
Active Member
Make Prsuaslicer default app for .3mf files in Ubuntu (Linux)?

Hi,

I'm hoping someone can help me find a way to make .3mf files open with prusaslicer when I double click them. I think the windows version has this option available in Preferences, but the linux version doesn't seem to. It always opens Archive Manager (file roller). Im worried about changing the default from the R click "Open with..." dialogue because it wants to change it for all compressed files, which is not what I want.

Prusaslicer 2.4.1

Ubuntu 20.04.4

DE: Mate

If anyone has any tips please let me know.

Thanks.

Best Answer by yossarianmtu:

I found a fix for this through the Ubuntu team. I shared the fix on PrusaSlicer's github and one of the Ubuntu guys sent a bug report to the package maintainer, but until the fix gets incorporated here is how you can do it (coppied from here):

Make a file named ~/.local/share/mime/packages/application-x-3mf.xml with vim or whatever text editor you like:

Copy and paste:

<?xml version="1.0" encoding="UTF-8"?> <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">   <mime-type type="application/x-3mf">      <comment>3D Manufacturing Format</comment>      <icon name="application-x-3mf"/>      <glob-deleteall/>      <glob pattern="*.3mf"/>   </mime-type> </mime-info>

Then run: update-mime-database ~/.local/share/mime

And finally, edit ~/.config/mimeapps.list and add the following line to the [Added Associations] section: application/x-3mf=prusa-slicer.desktop

 

You will then need to right click a .3mf file and select Open With Other Application and find PrusaSlicer. Make that your default and it should open it the correct program with a double click from now on. It doesn't display the prusaslicer icon for .3mf files, but I'm sure when they incorporate it into the package they will get it all fixed up.

Posted : 16/03/2022 10:15 pm
Rob Ludwick
(@rob-ludwick)
Active Member
RE: Make Prsuaslicer default app for .3mf files in Ubuntu (Linux)?

I just ran into this today.

Find a .3mf file in the file manager.

Right mouse click on it and select properties.

Then click on the open with tab.  Find Prusa Slicer and set it as the default.  

Close the window.  The file manager may still show it with a file roller icon but when you double click it it will open up with PrusaSlicer.

 

Posted : 16/04/2022 10:43 pm
yossarianmtu
(@yossarianmtu)
Active Member
Topic starter answered:
RE: Make Prsuaslicer default app for .3mf files in Ubuntu (Linux)?

Thanks, I'll give it a shot and report back.

Posted : 17/04/2022 4:00 am
yossarianmtu
(@yossarianmtu)
Active Member
Topic starter answered:
RE: Make Prsuaslicer default app for .3mf files in Ubuntu (Linux)?

So when I do that it associates all archive type files like zip/compressed files with prusaslicer which is obviously not great. Im sure there is some way to do this with MIME types or something, but I dont know enough about it to implement it. I think ill file a bug report on prusaslicer

Posted : 17/04/2022 8:03 pm
yossarianmtu
(@yossarianmtu)
Active Member
Topic starter answered:
RE: Make Prsuaslicer default app for .3mf files in Ubuntu (Linux)?[Solved]

I found a fix for this through the Ubuntu team. I shared the fix on PrusaSlicer's github and one of the Ubuntu guys sent a bug report to the package maintainer, but until the fix gets incorporated here is how you can do it (coppied from here):

Make a file named ~/.local/share/mime/packages/application-x-3mf.xml with vim or whatever text editor you like:

Copy and paste:

<?xml version="1.0" encoding="UTF-8"?> <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">   <mime-type type="application/x-3mf">      <comment>3D Manufacturing Format</comment>      <icon name="application-x-3mf"/>      <glob-deleteall/>      <glob pattern="*.3mf"/>   </mime-type> </mime-info>

Then run: update-mime-database ~/.local/share/mime

And finally, edit ~/.config/mimeapps.list and add the following line to the [Added Associations] section: application/x-3mf=prusa-slicer.desktop

 

You will then need to right click a .3mf file and select Open With Other Application and find PrusaSlicer. Make that your default and it should open it the correct program with a double click from now on. It doesn't display the prusaslicer icon for .3mf files, but I'm sure when they incorporate it into the package they will get it all fixed up.

Posted : 06/05/2022 6:11 pm
Share: