gnu: luakit: Fix crash on startup.

* gnu/packages/web-browsers.scm (luakit): add XDG_CONFIG_DIRS to the
  wrapping phase.

This fixes a crash when no configuration file is present in the user's home
directory. It allows luakit to use it's own default configuration files.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Raphaël Mélotte 2018-08-20 16:20:05 +02:00 committed by Ludovic Courtès
parent c305ac30c3
commit f998453559
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 3 additions and 1 deletions

View File

@ -187,7 +187,9 @@ features including, tables, builtin image display, bookmarks, SSL and more.")
(wrap-program (string-append luakit "/bin/luakit") (wrap-program (string-append luakit "/bin/luakit")
`("LUA_CPATH" prefix `("LUA_CPATH" prefix
(,(string-append lua5.1-filesystem (,(string-append lua5.1-filesystem
"/lib/lua/5.1/?.so;;")))) "/lib/lua/5.1/?.so;;")))
`("XDG_CONFIG_DIRS" prefix
(,(string-append luakit "/etc/xdg/"))))
#t)))))) #t))))))
(synopsis "Fast, lightweight, and simple browser based on WebKit") (synopsis "Fast, lightweight, and simple browser based on WebKit")
(description "Luakit is a fast, lightweight, and simple to use (description "Luakit is a fast, lightweight, and simple to use