Sweethome3d could not open a .sh3d on a different partition of same disk


On my Ubuntu 18.10 Cosmic installed from Ubuntu 18.10 “Cosmic Cuttlefish” - Alpha amd64 (20180709)

corrado@corrado-p9-cc-0709:~$ inxi -SCx
  Host: corrado-p9-cc-0709 Kernel: 4.15.0-23-generic x86_64 bits: 64 
  compiler: gcc v: 7.3.0 Desktop: Gnome 3.28.2 
  Distro: Ubuntu 18.10 (Cosmic Cuttlefish) 
  Topology: Dual Core model: Intel Core i3-7100 bits: 64 type: MT MCP 
  arch: Skylake rev: 9 L2 cache: 3072 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 31296 
  Speed: 800 MHz min/max: 800/3900 MHz Core speeds (MHz): 1: 800 2: 800 
  3: 800 4: 800 

I installed sweethome3d from Ubuntu Software:

corrado@corrado-p9-cc-0709:~$ snap list
Name                    Version    Rev   Tracking  Publisher  Notes
core                    16-2.33.1  4917  stable    canonical  core
gnome-3-26-1604         3.26.0     64    stable/…  canonical  -
gnome-calculator        3.28.1     178   stable/…  canonical  -
gnome-characters        3.28.2     101   stable/…  canonical  -
gnome-logs              3.28.2     37    stable/…  canonical  -
gnome-system-monitor    3.26.0     45    stable/…  canonical  -
gtk-common-themes       0.1        319   stable/…  canonical  -
sweethome3d-homedesign  5.7        3     stable    jibel      -

sweethome3d works fine on a .sh3d on same partition but is unable to open the same .sh3d on a different partition:

corrado@corrado-p9-cc-0709:~$ ls /media/corrado/dati3/nuova1.sh3d
corrado@corrado-p9-cc-0709:~$ snap run sweethome3d-homedesign /media/corrado/dati3/nuova1.sh3d
Picked up _JAVA_OPTIONS: -Duser.home=/home/corrado/snap/sweethome3d-homedesign/3
Java 3D: implicit antialiasing enabled
Gtk-Message: Failed to load module "canberra-gtk-module"
com.eteks.sweethome3d.model.RecorderException: Can't read home from /media/corrado/dati3/nuova1.sh3d
	at com.eteks.sweethome3d.io.HomeFileRecorder.readHome(Unknown Source)
	at com.eteks.sweethome3d.viewcontroller.HomeController$34.call(Unknown Source)
	at com.eteks.sweethome3d.viewcontroller.HomeController$34.call(Unknown Source)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at com.eteks.sweethome3d.viewcontroller.ThreadedTaskController$1.run(Unknown Source)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.MalformedURLException: no protocol: /media/corrado/dati3/nuova1.sh3d
	at java.net.URL.<init>(URL.java:593)
	at java.net.URL.<init>(URL.java:490)
	at java.net.URL.<init>(URL.java:439)
	... 10 more

with GIMP I had a similar problem: GIMP could not open a .xcf on a different partition of same disk

but the trick suggested for GIMP had no effect:

corrado@corrado-p9-cc-0709:~$ sudo snap connect sweethome3d-homedesign:removable-media
[sudo] password for corrado: 
error: snap "sweethome3d-homedesign" has no plug named "removable-media"

can you help me?



Thanks for reporting this issue. This interface is not declared in the snap. I’ll fix it in next release of the snap.