summary refs log tree commit diff stats
Commit message (Expand)AuthorAgeFilesLines
* Expose logging facilities to commandsael-code2016-11-251-0/+5
* Move startup log calls in main functionael-code2016-11-252-5/+5
* Added some useful debugging messageael-code2016-11-252-5/+18
* Update all the log callsael-code2016-11-254-11/+14
* Make use of standard logging library to handle logsael-code2016-11-254-4/+102
* cli: added logfile optionael-code2016-11-251-0/+2
* Removed unused nested function in FM classael-code2016-11-251-2/+0
* Removed unused logging helper functionael-code2016-11-251-35/+0
* Merge branch 'automatic-cd-osx' of https://github.com/arshiamufti/rangerhut2016-11-041-0/+2
|\
| * Add correct path to ranger on OS XArshia Mufti2016-09-061-0/+2
* | Merge branch 'preview_method_set_fix' of https://github.com/Vifon/rangerhut2016-11-041-1/+8
|\ \
| * | Update the image preview method upon setting it in runtimeWojciech Siewierski2016-10-101-1/+8
* | | Merge branch 'urxvt_preview' of https://github.com/Vifon/rangerhut2016-11-041-6/+20
|\ \ \
| * | | urxvt previews: Allow the preview maximizationWojciech Siewierski2016-10-111-6/+20
| |/ /
* | | added comments to code from 9361c51 (#693)hut2016-11-042-2/+6
* | | Merge branch 'master' of https://github.com/valoq/rangerhut2016-11-042-2/+5
|\ \ \
| * | | fixed 7z crashvaloq2016-10-232-2/+5
| |/ /
* | | Merge branch 'statusbar_percentage_crashes' of https://github.com/richboss/ra...hut2016-11-041-1/+1
|\ \ \
| * | | fix issue #679: Statusbar percentage crashes on python 2.6.6Richard Boß2016-10-241-1/+1
| |/ /
* | | Merge branch 'windows_line_endings' of https://github.com/richboss/rangerhut2016-11-041-1/+1
|\ \ \
| * | | fix issue #698: replace Windows line endings with Unix line endingsRichard Boß2016-10-251-1/+1
| |/ /
* | | ext.vcs.vcs: code deduplicationhut2016-11-042-16/+43
* | | code deduplicationhut2016-11-042-9/+9
* | | Merge branch 'subprocess_check_output' of https://github.com/richboss/rangerhut2016-11-042-3/+16
|\ \ \
| * | | fix argument orderRichard Boß2016-10-252-2/+2
| * | | fix issue #695: FileInfo Linemode crashes Ranger on Python 2.6Richard Boß2016-10-242-3/+16
| |/ /
* | | Increase `fm.log` maxlennfnty2016-10-311-1/+1
* | | Always extend left side of `fm.log`nfnty2016-10-312-8/+7
* | | VCS: Handle exceptionsnfnty2016-10-311-9/+14
|/ /
* | Fix the urxvt preview documentationWojciech Siewierski2016-10-084-8/+8
* | Implement the urxvt-based image previewsWojciech Siewierski2016-10-057-12/+132
|/
* manpage: rebuildhut2016-09-032-27/+20
* manpage: Document how to escape macroshut2016-09-032-2/+6
* Revert "Add github issue/PR templates"hut2016-08-272-14/+0
* Add github issue/PR templateshut2016-08-272-0/+14
* Merge branch 'open_terminal_with_options' of https://github.com/Vifon/rangerhut2016-08-263-14/+18
|\
| * Refactor and improve the TERMCMD handlingWojciech Siewierski2016-06-303-14/+18
* | Merge branch 'anomalous-backslash-in-string' of https://github.com/stepshal/r...hut2016-08-261-1/+1
|\ \
| * | gui.ansi: fix anomalous backslash in string.stepshal2016-07-111-1/+1
* | | Merge branch 'master' of https://github.com/nfnty/rangerhut2016-08-265-75/+80
|\ \ \
| * | | VCS: Add _run rstrip_newlinenfnty2016-08-085-60/+64
| * | | VCS: git: Fix log output containing control characters, Fixes #641nfnty2016-08-021-17/+18
| |/ /
* | | Merge branch 'master' of https://github.com/nightsense/rangerhut2016-08-261-1/+1
|\ \ \
| * | | add hash to escaped characters in shell commandsnightsense2016-08-061-1/+1
| |/ /
* | | Merge branch 'master2' of https://github.com/nightsense/rangerhut2016-08-261-1/+1
|\ \ \
| * | | fix documentation typonightsense2016-08-151-1/+1
| |/ /
* | | README: document more optional "dependencies" for scope.shhut2016-08-261-2/+2
* | | README: document commit d2f1817 (from PR #658)hut2016-08-261-0/+1
* | | Added preview option for odt, ods, odp and sxw files using odt2txtFlorian Sattler2016-08-261-0/+3
* | | Revert "gui.displayable: more safe DisplayableContainer.replace_child"hut2016-08-221-13/+3
class="n">cont && !force_quit) { log_stderr_handler(); session_check_autoaway(); line = inp_readline(); if (line) { ProfWin* window = wins_get_current(); cont = cmd_process_input(window, line); free(line); line = NULL; } else { cont = TRUE; } #ifdef HAVE_LIBOTR otr_poll(); #endif plugins_run_timed(); notify_remind(); session_process_events(); iq_autoping_check(); ui_update(); #ifdef HAVE_GTK tray_update(); #endif } } void prof_set_quit(void) { force_quit = TRUE; } static void _connect_default(const char* const account) { ProfWin* window = wins_get_current(); if (account) { cmd_execute_connect(window, account); } else { char* pref_connect_account = prefs_get_string(PREF_CONNECT_ACCOUNT); if (pref_connect_account) { cmd_execute_connect(window, pref_connect_account); g_free(pref_connect_account); } } } static void _init(char* log_level, char* config_file, char* log_file, char* theme_name) { setlocale(LC_ALL, ""); // ignore SIGPIPE signal(SIGPIPE, SIG_IGN); signal(SIGINT, SIG_IGN); signal(SIGTSTP, SIG_IGN); signal(SIGWINCH, ui_sigwinch_handler); if (pthread_mutex_init(&lock, NULL) != 0) { log_error("Mutex init failed"); exit(1); } pthread_mutex_lock(&lock); files_create_directories(); log_level_t prof_log_level = log_level_from_string(log_level); prefs_load(config_file); log_init(prof_log_level, log_file); log_stderr_init(PROF_LEVEL_ERROR); if (strcmp(PACKAGE_STATUS, "development") == 0) { #ifdef HAVE_GIT_VERSION log_info("Starting Profanity (%sdev.%s.%s)...", PACKAGE_VERSION, PROF_GIT_BRANCH, PROF_GIT_REVISION); #else log_info("Starting Profanity (%sdev)...", PACKAGE_VERSION); #endif } else { log_info("Starting Profanity (%s)...", PACKAGE_VERSION); } chat_log_init(); groupchat_log_init(); accounts_load(); if (theme_name) { theme_init(theme_name); } else { char* theme = prefs_get_string(PREF_THEME); theme_init(theme); g_free(theme); } ui_init(); session_init(); cmd_init(); log_info("Initialising contact list"); muc_init(); tlscerts_init(); scripts_init(); #ifdef HAVE_LIBOTR otr_init(); #endif #ifdef HAVE_LIBGPGME p_gpg_init(); #endif #ifdef HAVE_OMEMO omemo_init(); #endif atexit(_shutdown); plugins_init(); #ifdef HAVE_GTK tray_init(); #endif inp_nonblocking(TRUE); ui_resize(); } static void _shutdown(void) { if (prefs_get_boolean(PREF_WINTITLE_SHOW)) { if (prefs_get_boolean(PREF_WINTITLE_GOODBYE)) { ui_goodbye_title(); } else { ui_clear_win_title(); } } jabber_conn_status_t conn_status = connection_get_status(); if (conn_status == JABBER_CONNECTED) { cl_ev_disconnect(); } #ifdef HAVE_GTK tray_shutdown(); #endif session_shutdown(); plugins_on_shutdown(); muc_close(); caps_close(); #ifdef HAVE_LIBOTR otr_shutdown(); #endif #ifdef HAVE_LIBGPGME p_gpg_close(); #endif #ifdef HAVE_OMEMO omemo_close(); #endif chat_log_close(); theme_close(); accounts_close(); tlscerts_close(); log_stderr_close(); log_close(); plugins_shutdown(); cmd_uninit(); ui_close(); prefs_close(); }