[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NEW: hydrogen
- To: ports_(_at_)_openbsd_(_dot_)_org
- Subject: Re: NEW: hydrogen
- From: Jacob Meuser <jakemsr_(_at_)_jakemsr_(_dot_)_com>
- Date: Sun, 2 Oct 2005 19:03:48 -0700
- Mail-followup-to: ports_(_at_)_openbsd_(_dot_)_org
On Sun, Oct 02, 2005 at 10:04:57PM +0200, Marc Espie wrote:
> On Sun, Oct 02, 2005 at 09:36:24PM +0200, Bernd Ahlers wrote:
> > - I got many of this:
> >
> > systrace: deny user: bernd, prog: /usr/local/lib/qt3/bin/uic, pid:
> > 29205(0)[16880], policy: /usr/bin/env, filters: 144, syscall:
> > native-fswrite(136), filename: /hydrogen-0.9.2_writes_to_HOME/.qt
> > QSettings: error creating /hydrogen-0.9.2_writes_to_HOME/.qt
>
> This is a classic issue with qt ports... no-one so far as hunted inside
> the qt code to tell it to stop writing these.
this is where it happens.
--- src/tools/qsettings.cpp.orig Sun Oct 2 18:04:15 2005
+++ src/tools/qsettings.cpp Sun Oct 2 18:14:34 2005
@@ -504,12 +504,16 @@
#endif
QDir dir(appSettings);
if (! dir.exists()) {
+#if 1 // just warn, don't try to create it
+ qWarning("QSettings: %s does not exist", dir.path().latin1());
+#else
if (! dir.mkdir(dir.path()))
#if defined(QT_CHECK_STATE)
qWarning("QSettings: error creating %s", dir.path().latin1());
#else
;
#endif
+#endif // appSettings came from ./qdir_unix.cpp::QDir::homeDirPath()
}
if ( !!defPath )
but that's probably a dangerous patch. some qt applications do
use ~/.qt for storing user configuration files.
might it not be better to just set $HOME to somewhere that is OK to
write to?
--
<jakemsr_(_at_)_jakemsr_(_dot_)_com>
Visit your host, monkey.org