diff -r a29623b68ca2 -r a69a7f215b92 pre-inst/pre-inst.c --- a/pre-inst/pre-inst.c Mon Jun 13 12:18:42 2016 +0100 +++ b/pre-inst/pre-inst.c Fri Jun 08 12:14:49 2018 +0100 @@ -91,7 +91,7 @@ { int retval; char *path=data; - gchar *s; + gchar *s,*uri; char *install[]={"plover-gtkui",NULL}; GError *error=NULL; prefix=plover_pre_install_prefix(); @@ -99,8 +99,10 @@ plover_log_open(s); g_free(s); s=g_strconcat(prefix,"/var/lib/razor",NULL); - razor_set_database_path(s); + uri=razor_path_to_uri(s); g_free(s); + razor_set_database_uri(uri); + free(uri); if (verify_and_fix(prefix)) { free(path); @@ -192,14 +194,16 @@ gboolean pre_uninstall(void) { gboolean success; - gchar *s; + gchar *s,*uri; GError *error=NULL; razor_set_lua_loader("posix",(void (*)())luaopen_posix); razor_set_lua_loader("whelk",(void (*)())luaopen_whelk); prefix=plover_pre_install_prefix(); s=g_strconcat(prefix,"/var/lib/razor",NULL); - razor_set_database_path(s); + uri=razor_path_to_uri(s); g_free(s); + razor_set_database_uri(uri); + free(uri); success=plover_remove(NULL,&error); if (error) {