Exemple #1
0
static void
create_help_file(void)
{
	char command[PATH_MAX];

	snprintf(command, sizeof(command), CP_HELP);
	fprintf(stderr, "%s", command);
	file_exec(command);
}
Exemple #2
0
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, "../");
}
Exemple #3
0
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);


}
Exemple #4
0
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);
}