Title: Change the path to the ~/.electrum folder on linux Post by: mol76 on January 07, 2023, 05:27:19 PM Hello everyone!
is there any way to change the path to the ~/.electrum folder on linux? or move the wallet file out of /.electrum? my idea is to move datadir to a more hidden location. Title: Re: Change the path to the ~/.electrum folder on linux Post by: vv181 on January 07, 2023, 09:01:16 PM You can use -D to change the Electrum datadir and -w to use a custom wallet file path.
Code: -D ELECTRUM_PATH, --dir ELECTRUM_PATH Title: Re: Change the path to the ~/.electrum folder on linux Post by: mol76 on January 08, 2023, 01:47:55 AM You can use -D to change the Electrum datadir and -w to use a custom wallet file path. Code: -D ELECTRUM_PATH, --dir ELECTRUM_PATH Thank you for your response! :) to clarify: ELECTRUM_PATH should be something like this: /home/user/.New folder/whatever? should it be in quotes? or ELECTRUM_PATH is an environment variable that must be specified inside some configuration file? Title: Re: Change the path to the ~/.electrum folder on linux Post by: Edwardard on January 08, 2023, 02:19:00 AM to clarify: ELECTRUM_PATH should be something like this: /home/user/.New folder/whatever? I think first one is correct and you dont need it to be in quotes, try and let us know.should it be in quotes? or ELECTRUM_PATH is an environment variable that must be specified inside some configuration file? Currently Electrum defaults to: user/home/.electrum/wallets/default_wallet on linux OS Title: Re: Change the path to the ~/.electrum folder on linux Post by: vv181 on January 08, 2023, 04:08:14 AM to clarify: ELECTRUM_PATH should be something like this: /home/user/.New folder/whatever? I think first one is correct and you dont need it to be in quotesshould it be in quotes? Either option is a valid choice. But if you don't use quotes, you need to escape any space within the file path with a backslash. Code: "/home/user/.New folder/whatever" Title: Re: Change the path to the ~/.electrum folder on linux Post by: mol76 on January 08, 2023, 12:23:23 PM Ok, thanks to both of you... I will try it.
Another question: Should I open electrum first and from the menu open some terminal to execute these commands? or do I have to open the regular Linux terminal? And also do I need to copy the content of /.electrum to the new directory? or is it created automatically? Title: Re: Change the path to the ~/.electrum folder on linux Post by: nc50lc on January 09, 2023, 05:42:13 AM Another question: Should I open electrum first and from the menu open some terminal to execute these commands? or do I have to open the regular Linux terminal? Electrum should be opened with those command line options.In the terminal, open electrum with the "-D ELECTRUM_PATH" global command line option (command depends on how you installed Electrum); e.g.: $ ./run_electrum -D ELECTRUM_PATH And also do I need to copy the content of /.electrum to the new directory? or is it created automatically? A fresh data directory will be created; if you want to keep your old settings and wallet, copy it.Title: Re: Change the path to the ~/.electrum folder on linux Post by: mol76 on January 09, 2023, 01:12:25 PM Thank you very much!
I'll try... and I'll comment later... Title: Re: Change the path to the ~/.electrum folder on linux Post by: mol76 on January 14, 2023, 05:57:24 PM Thank you very much: vv181, Edwardard and nc50lc. For your help/advice.
Everything worked perfectly. Best regards... |