diff options
Diffstat (limited to 'gtk/src/main.c')
-rw-r--r-- | gtk/src/main.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/gtk/src/main.c b/gtk/src/main.c index a6a12fc9d..aade07e06 100644 --- a/gtk/src/main.c +++ b/gtk/src/main.c @@ -698,21 +698,7 @@ main (int argc, char *argv[]) ghb_hal_init(); #endif - if (!ghb_lock_file("queue_lock")) - { - const gchar *markup = - N_("<b><big>Another instance of HandBrake is already running.</big></b>\n" - "\n" - "Only one instance of HandBrake may run.\n"); - GtkWidget *dialog = gtk_message_dialog_new_with_markup(NULL, - GTK_DIALOG_MODAL, - GTK_MESSAGE_ERROR, - GTK_BUTTONS_CLOSE, - _(markup)); - gtk_dialog_run(GTK_DIALOG(dialog)); - gtk_widget_destroy(dialog); - exit(EXIT_FAILURE); - } + ghb_write_pid_file(); ud = g_malloc0(sizeof(signal_user_data_t)); ud->debug = ghb_debug; g_log_set_handler (NULL, G_LOG_LEVEL_DEBUG, debug_log_handler, ud); |