static void create_help_file(void) { char command[PATH_MAX]; snprintf(command, sizeof(command), CP_HELP); fprintf(stderr, "%s", command); file_exec(command); }
static void create_rc_file(void) { char command[PATH_MAX]; snprintf(command, sizeof(command), CP_RC); file_exec(command); add_bookmark('H', getenv("HOME"), "../"); add_bookmark('z', cfg.config_dir, "../"); }
void root_cb (void) { /* Should make this user definable for different systems */ gchar root_command[NAME_MAX]; g_snprintf(root_command, sizeof(root_command), "%s -e su root -c vide", cfg.xterm_command); file_exec(root_command); }
void empty_trash_cb (void) { gchar tmp_dir[PATH_MAX]; g_snprintf(tmp_dir, sizeof(tmp_dir), curr_view->dir); if (!chdir (cfg.trash)) { /*fix . .. */ file_exec ("rm -f -r * *. .*"); } chdir(tmp_dir); }