aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRobert Pluim2020-08-16 21:40:19 -0700
committerPaul Eggert2020-08-16 21:41:03 -0700
commit4542b750ccd03aaf8f2af0fe01bc88bf582aa125 (patch)
treeaf8cf71495ccff1fdf2264ef067e605b92901e60 /src
parent9b403d624ee6e608d1ff3d577e358b6befe743e1 (diff)
downloademacs-4542b750ccd03aaf8f2af0fe01bc88bf582aa125.tar.gz
emacs-4542b750ccd03aaf8f2af0fe01bc88bf582aa125.zip
Fix bug with ~/Emacs file not being read at init
* src/xrdb.c (get_user_app): Put "/" between homedir and %L or %N (Bug#42827).
Diffstat (limited to 'src')
-rw-r--r--src/xrdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xrdb.c b/src/xrdb.c
index ad7155c106e..d3ac1175521 100644
--- a/src/xrdb.c
+++ b/src/xrdb.c
@@ -289,9 +289,9 @@ get_user_app (const char *class)
289 /* Check in the home directory. This is a bit of a hack; let's 289 /* Check in the home directory. This is a bit of a hack; let's
290 hope one's home directory doesn't contain ':' or '%'. */ 290 hope one's home directory doesn't contain ':' or '%'. */
291 char const *home = get_homedir (); 291 char const *home = get_homedir ();
292 db = search_magic_path (home, class, "%L/%N"); 292 db = search_magic_path (home, class, "/%L/%N");
293 if (! db) 293 if (! db)
294 db = search_magic_path (home, class, "%N"); 294 db = search_magic_path (home, class, "/%N");
295 } 295 }
296 296
297 return db; 297 return db;