Ticket #119: Persistent global configuration option for "Preserve attributes" wanted

Currently, there is no way to change the defaults. The file mask
dialog options are not persistent.

Added new config option 'copymove_persistent_attr'. If this option is equal to '0'
then 'Preserve attributes' in copy/move dialog will always switched off.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2009-10-26 13:32:10 +02:00
parent 2445ccf9b9
commit 27cc9ac15e
3 changed files with 7 additions and 0 deletions

View File

@ -166,6 +166,9 @@ filegui__check_attrs_on_fs(const char *fs_path)
{
struct statfs stfs;
if (!setup_copymove_persistent_attr)
return 0;
if (statfs(fs_path, &stfs)!=0)
return 1;

View File

@ -89,6 +89,7 @@ int startup_right_mode;
/* Ugly hack to allow panel_save_setup to work as a place holder for */
/* default panel values */
int saving_setup;
int setup_copymove_persistent_attr = 1;
static const struct {
const char *key;
@ -225,6 +226,7 @@ static const struct {
{ "mcview_remember_file_position", &mcview_remember_file_position },
{ "auto_fill_mkdir_name", &auto_fill_mkdir_name },
{ "reverse_files_only", &reverse_files_only },
{ "copymove_persistent_attr", &setup_copymove_persistent_attr },
{ 0, 0 }
};

View File

@ -35,4 +35,6 @@ extern int verbose;
extern int mouse_close_dialog;
extern int reverse_files_only;
extern int setup_copymove_persistent_attr;
#endif