Bug#695528: sweethome3d: no longer loads plugins

Johannes Berg johannes at sipsolutions.net
Sun Dec 9 19:47:37 UTC 2012


Package: sweethome3d
Version: 3.7+dfsg-1
Severity: normal
Tags: patch

The experimental version of the package no longer loaded the AdvancedEditing
plugin for me, so I look at it and found that it was trying to access the
literal path '~/.eteks/sweethome3d/plugins' instead of /home/johannes/....
It seems that Java doesn't have path expansion, or maybe something changed.
This is easily fixed in the shell wrapper though:

--- a/usr/bin/sweethome3d	2012-10-28 17:47:54.000000000 +0100
+++ b/usr/bin/sweethome3d	2012-12-09 20:46:37.726141116 +0100
@@ -3,7 +3,7 @@
 #
 BASEPATH=/usr/share/sweethome3d
 JAVA_ARGS="-Djava.library.path=/usr/lib/jni \
- -Dcom.eteks.sweethome3d.applicationFolders=~/.eteks/sweethome3d:/usr/share/sweethome3d"
+ -Dcom.eteks.sweethome3d.applicationFolders=$(echo ~/.eteks/sweethome3d):/usr/share/sweethome3d"
 
 . /usr/lib/java-wrappers/java-wrappers.sh
 

Doing the "echo" there forces the shell to expand the
path before passing it to Java.

johannes


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.6-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages sweethome3d depends on:
ii  default-jre [java6-runtime]     1:1.7-48
ii  icedtea-netx-common             1.3.1-1
ii  java-wrappers                   0.1.25
ii  java3ds-fileloader              1.2+dfsg-1
ii  libbatik-java                   1.7+dfsg-3
ii  libfreehep-graphicsio-svg-java  2.1.1-3
ii  libitext-java                   2.1.7-3
ii  libjava3d-java                  1.5.2+dfsg-8
ii  libsunflow-java                 0.07.2.svn396+dfsg-9
ii  openjdk-6-jre [java6-runtime]   6b24-1.11.5-1
ii  openjdk-7-jre [java6-runtime]   7u9-2.3.3-1

Versions of packages sweethome3d recommends:
pn  sweethome3d-furniture  <none>

sweethome3d suggests no packages.

-- no debconf information



More information about the pkg-java-maintainers mailing list