1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 40_scim_user_home_overrides.dpatch by Colin Watson <cjwatson@ubuntu.com>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Allow home directory and user name detection to be overridden using
6
## DP: SCIM_HOME and SCIM_USER environment variables respectively.
9
diff -urNad scim-1.4.7~/src/scim_utility.cpp scim-1.4.7/src/scim_utility.cpp
10
--- scim-1.4.7~/src/scim_utility.cpp 2007-06-26 15:31:38.000000000 +0100
11
+++ scim-1.4.7/src/scim_utility.cpp 2008-07-26 11:28:49.000000000 +0100
16
+ home_dir = getenv ("SCIM_HOME");
17
+ if (home_dir && *home_dir) {
18
+ return String (home_dir);
22
pw = getpwuid (getuid ());
26
const char *user_name;
28
+ user_name = getenv ("SCIM_USER");
29
+ if (user_name && *user_name) {
30
+ return String (user_name);
34
pw = getpwuid (getuid ());