Association files sh3d

This topic has been viewed 7385 times and has 1 replies
Thread status: Active
Questions about Sweet Home 3D installation [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
Bass_man
Posts: 4
Joined: Thu Jun 02, 2016 8:28 am

Association files sh3d

Post by Bass_man »

Hi everybody,

I'm running SweetHome3D under Ubuntu 14.04, and it works well. But there is no association between sh3d files and SweetHome3D. If I want to open SweetHome3D first, and then open the file with SweetHome3D ; but if I want to open the file first, there is no association with SweetHome3D. And if I try to click-right on the file to obtain the contextual menu to "Open with", there is no SweetHome3D in the applications list.
So, how can I associate sh3d files with SweetHome3D application ?...
Should I create a mine type to do so, and how ?

Thank you for your help.
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Association files sh3d

Post by Puybaret »

[Translated from the French version. Bass_man, please don't double all your messages in French and English!]

As suggested here, create a [font=courier new]sweethome3d.desktop[/font] file with the following content, or download and modify this file:

Code: Select all

[Desktop Entry]
Version=1.0
Type=Application
Name=Sweet Home 3D
GenericName=Sweet Home 3D
Comment=Design home interiors
Exec=/installationFolder/SweetHome3D-5.2/SweetHome3D %U
Icon=/installationFolder/SweetHome3D-5.2/SweetHome3DIcon.png
Terminal=false
Categories=Graphics
MimeType=application/SweetHome3D
In this text file, replace the installationFolder folder by the one where [font=courier new]SweetHome3D[/font] program is stored.
If you want an icon (not mandatory), download this one (it will be also available in the installation folder of the next version 5.3).

Once the [font=courier new]sweethome3d.desktop[/font] file is ready, move it in the folder [font=courier new] ~/.local/share/applications[/font] (if you want to make it available only to you) or in [font=courier new]/usr/share/applications[/font] (for all systems users).
Finally, choose the Open with > Other application... item in the contextual menu of the .sh3d file you want to open, and in the displayed dialog box, click on the Show other applications to select Sweet Home 3D.
Emmanuel Puybaret, Sweet Home 3D creator
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest