diff --git a/config.c b/config.c index 76ca03e..32a8326 100644 --- a/config.c +++ b/config.c @@ -205,6 +205,8 @@ config_load_default(zathura_t* zathura) girara_setting_add(gsession, "statusbar-basename", &bool_value, BOOLEAN, false, _("Use basename of the file in the statusbar"), NULL, NULL); bool_value = false; girara_setting_add(gsession, "synctex", &bool_value, BOOLEAN, false, _("Enable synctex support"), NULL, NULL); + bool_value = true; + girara_setting_add(gsession, "synctex-dbus-service", &bool_value, BOOLEAN, false, _("Enable D-Bus service for synctex forward synchronization support"), NULL, NULL); string_value = "primary"; girara_setting_add(gsession, "selection-clipboard", string_value, STRING, false, _("The clipboard into which mouse-selected data will be written"), NULL, NULL); diff --git a/main.c b/main.c index 2f0c52a..692f1d2 100644 --- a/main.c +++ b/main.c @@ -97,7 +97,7 @@ main(int argc, char* argv[]) if (synctex_fwd != NULL) { if (argc != 2) { - girara_error("Too many arguments or missing filename while running with --syntex-forward"); + girara_error("Too many arguments or missing filename while running with --synctex-forward"); return -1; } diff --git a/zathura.c b/zathura.c index d62ec2e..67b7a5d 100644 --- a/zathura.c +++ b/zathura.c @@ -805,8 +805,12 @@ document_open(zathura_t* zathura, const char* path, const char* password, position_set(zathura, file_info.position_x, file_info.position_y); } - /* Start D-Bus */ - zathura->synctex.dbus = zathura_synctex_dbus_new(zathura); + /* Start D-Bus service for synctex forward synchronization */ + bool synctex_dbus = true; + girara_setting_get(zathura->ui.session, "synctex-dbus-service", &synctex_dbus); + if (synctex_dbus == true) { + zathura->synctex.dbus = zathura_synctex_dbus_new(zathura); + } return true; diff --git a/zathurarc.5.rst b/zathurarc.5.rst index 54e8edd..deb826f 100644 --- a/zathurarc.5.rst +++ b/zathurarc.5.rst @@ -752,7 +752,7 @@ zoom-center ^^^^^^^^^^^ En/Disables horizontally centered zooming -* Value type: Bool +* Value type: Boolean * Default value: False zoom-max @@ -787,6 +787,13 @@ middle mouse button, or the Shift-Insert key combination. * Value type: String * Default value: primary +syntex-dbus-service +^^^^^^^^^^^^^^^^^^^ +En/disables the D-Bus service required for synctex forward synchronization. + +* Value type: Boolean +* Default value: true + SEE ALSO ========