<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>203360</bug_id>
          
          <creation_ts>2007-12-26 09:22 0000</creation_ts>
          <short_desc>games-rpg/nwn-1.68-r1: user preferences are not saved</short_desc>
          <delta_ts>2008-02-17 01:20:53 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Games</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>dju@gentoo.org</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          <cc>calchan@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>dju@gentoo.org</who>
            <bug_when>2007-12-26 09:22:00 0000</bug_when>
            <thetext>Looks like symlinking *.ini files from /opt/nwn/ to ~/.nwn/${LANG}/ is not a good idea: user preferences are not saved because of the files permissions (owned by root:games and 0640 permissions). Furthermore, having *.ini files under /opt/nwn/ disallows multiple users having their own personal settings. Thus I suggest copying *.ini files instead of symlinking them.

The following patch is a dirty hack that works. Files ending by &quot;.ini&quot; are not symlinked, they are created by nwn the first time it is run.

--- /opt/nwn/nwn        2007-12-26 09:59:36.000000000 +0100
+++ nwn 2007-12-26 09:41:28.000000000 +0100
@@ -37,7 +37,7 @@
 mkdir -p &quot;${p}&quot;
 find &quot;${p}&quot; -type l -delete
 for i in * ; do
-       if [[ ! -f &quot;.metadata/linguas_${i}&quot; ]]
+       if [[ ! -f &quot;.metadata/linguas_${i}&quot; &amp;&amp; ${i: -4} != &quot;.ini&quot; ]]
        then
                cp -rfs ${dir}/${i} ${p}/. || die &quot;copy ${i}&quot;
        fi
@@ -50,11 +50,9 @@
        done
 fi
 cd &quot;${p}&quot; || die &quot;cd ${p}&quot;
-if [[ ! -a nwn.ini ]]; then
-       cp nwn.ini.default nwn.ini
-fi
 if [[ -r ./nwmovies.so ]]; then
        export LD_PRELOAD=./nwmovies.so:$LD_PRELOAD
 fi</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2007-12-26 10:38:01 0000</bug_when>
            <thetext>OK... sounds like something we definitely need to fix up.  Thanks for the report, we&apos;ll get to it as soon as time permits.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>calchan@gentoo.org</who>
            <bug_when>2007-12-26 17:24:01 0000</bug_when>
            <thetext>I&apos;ll have a look at this. Plus that will be a good opportunity to unmask the experimental ebuilds that has been p.masked for too long now.

Denis.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>calchan@gentoo.org</who>
            <bug_when>2008-02-17 01:20:53 0000</bug_when>
            <thetext>Fixed. Thanks for the patch.

Denis.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>