Fixes: NB#220076 - applauncherd.bin does not work without link to /tmp/m.themedaemon

Details: TMPDIR is hardcoded to /var/tmp, if it's not set already

Revby: Jussi Lind
pull/1/head
Antti Kervinen 15 years ago
parent 1b47328a85
commit e60c7adcd5

@ -328,7 +328,7 @@ This functionality is implemented in a position-independent executable called
single-instance. Applauncherd uses this executable as a library, but it can be
used as an ordinary program to start anything as a single instance:
/usr/bun/single-instance <application_name>
/usr/bin/single-instance <application_name>
Note, that in this case the launcher is not used.

4
debian/changelog vendored

@ -1,6 +1,10 @@
applauncherd (0.17.0) unstable; urgency=low
* Fixes: NB#212024 - Application launcher should be usable (improve performance) also at boot
* Fixes: NB#220076 - applauncherd.bin does not work without link to /tmp/m.themedaemon
* Changes: support for --boot-mode in applauncherd.bin
* Changes: support for --help in applauncherd.bin
* Changes: support for --single-instance in invoker
* Changes: --debug argument problem fixed in preloading
* Changes: Corrected error on test-perf-mbooster.py
* Changes: Commented out the single-instance test case skeletons

@ -136,6 +136,12 @@ int main(int argc, char ** argv)
helpWanted = 1;
}
// Set environment. Because applauncherd is usually a privileged
// process, TMPDIR variable might be unset by the C library. In
// case it's not set, we set it to /var/tmp, which usually is not
// a RAM disk.
setenv("TMPDIR", "/var/tmp", 0);
// Preload libraries
if (!helpWanted)
loadLibraries(gLibs, sizeof(gLibs) / sizeof(char *));

Loading…
Cancel
Save