Ah, with Linux, do this:
- Open bash/command line in your distro.
- sudo vi /usr/share/applications/bitcoin-qt.desktop
(or whatever the bitcoin labelled file is named, check using command: ls -l /usr/share/applications/ )
- Press i to begin editing (INSERT will appear at the bottom of the terminal window)
- Add the "--datadir=" line to the executable command
- Press i again
- Type :wq then press return
You can check that the changes were written to the file properly by repeating step 2
"sudo vi /usr/share/applications/armory.desktop" got me this:
Name=Armory
GenericName=Bitcoin Client
Comment=Full-featured Bitcoin wallet management application
Categories=Qt;Network;
Exec=/usr/bin/armory %u
Icon=armoryicon
StartupNotify=false
Terminal=false
MimeType=x-scheme-handler/bitcoin
...but "i" seem to not do anything. "INSERT" did not appear at the bottom of the terminal window and when I attempted to press "i" a few more times and also other keys, it started to do some weird stuff to it (deleting characters, adding new lines, etc.). Not knowing what to do next, I just closed the terminal.
Each time I do "sudo vi /usr/share/applications/armory.desktop" again, I now get this:
E325: ATTENTION
Found a swap file by the name "/usr/share/applications/.armory.desktop.swp"
owned by: root dated: Sun Aug 30 21:15:21 2015
file name: /usr/share/applications/armory.desktop
modified: YES
user name: root host name:
process ID: 4054
While opening file "/usr/share/applications/armory.desktop"
dated: Sun Aug 30 22:05:17 2015
NEWER than swap file!
(1) Another program may be editing the same file. If this is the case,
be careful not to end up with two different instances of the same
file when making changes. Quit, or continue with caution.
(2) An edit session for this file crashed.
If this is the case, use ":recover" or "vim -r /usr/share/applications/armor
y.desktop"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file "/usr/share/applications/.armo
ry.desktop.swp"
to avoid this message.
"/usr/share/applications/armory.desktop" 10 lines, 232 characters
Press ENTER or type command to continue
I have no clue how to proceed from here.
Assuming that I get "i" (INSERT) to eventually work, which (Executable) line do I add the "--datadir=
" to?