Joined: Nov 6, 2016
Post Count: 34
Status:
Offline
Re: install sweethome 3D 7.1 on Linux Elementary OS
Note the location of the SweetHome3D start script. This is the script you edited before.
Right click on a .sh3d file Click "Open With Other Application" Navigate to the SweetHome3D script and select to open with that script. Don't forget to mark "Remember this applicatpon for sh3d documents".
From now on double clicking on a sh3d file should start SweetHome3D with the clicked file.
(This is on Debian but it's probably the same on Elementary.)
Thank you @Keet for your suggestion.
I tried it, but unfortunately i haven't seen any option like "open with that script" or "navigate to folder".
In the Files program, i make a right-click on my .sh3d file, then "open with > other application". There is no further option like "open with -> navigate to folder" or "navigate to script".
Netherlands
Joined: Apr 8, 2022
Post Count: 790
Status:
Offline
Re: install sweethome 3D 7.1 on Linux Elementary OS
If you don't see an option "Open With" when you right-click a .sh3d file you can select "properties". This will show a window and there should be a tab with "Open With". From there on the instructions remain the same:
After "Open With" you should see a list of programs. SweetHome3D should be in the list but I assume it is not because of your question. If it is check the "Remember" or "Always use this" option.
If SweetHome3D is not in the list you should see an option called something like "Custom Command". After checking that you should get a button to browse to the script and select it. Of course check the "Remember" or "Always use this" option. Also use this option if SweetHome3D IS in the list but you have installed a second version in another location that you want to associate with .sh3d files. I checked this on Debian and this should work.
By-the-way, don't use the option to default sweethome3d-7.1.desktop to application/zip. It can cause ALL zips to open with SweetHome3D. My described method does nothing more than associate the .sh3d extension with the SweetHome3D program, exactly what you want. By-By-the-way, It's not so much the Linux distribution that makes a difference, it is the desktop you use (Gnome, Mate, KDE, etc). Every desktop manager can handle these things in slightly different ways but they mostly work the same with sometimes little differences in how options are named.
Joined: Nov 6, 2016
Post Count: 34
Status:
Offline
Re: install sweethome 3D 7.1 on Linux Elementary OS
Many thanks @Keet for your help. the trick with "properties" is unfortunately the same as with "open with" The properties window looks like this:
under "ouvrir avec" i see the same list as earlier with "open with". No ability to set any path or any script. If sweethome3d doesn't appear in this list of installed applications, no chance...
the desktop used by Elementary OS is Pantheon. Unfortunately it seems to be poorer than the desktop you use under Debian. The executable file for sweethome3d is installed under /opt/SweetHome3D-7.1/SweetHome3D