Skip to content

Reloading config on signal #40

Description

@disarmer

Hi!
Is there are ways to reload config properly? I'm trying to change font of working tilda instance by reloading config on SIGHUP or other signal(like in nginx), but i have no idea how to apply visual settings due my poor C skill.

static void termination_handler (G_GNUC_UNUSED gint signum) {
    if (signum == SIGHUP) {
        DEBUG_FUNCTION ("reload_handler");
        gint instance = get_instance_number ();
        gchar *config_file = get_config_file_name (instance);
        DEBUG_FUNCTION (config_file);
        config_init (config_file);
        parse_cli (0,*"");
    } else {
        DEBUG_FUNCTION ("termination_handler");
        gtk_main_quit ();
   }
}

It works, but window appearance didn't change

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions