The problem is that nautilus tries to open a file name '~' in the current working directory. This can be reproduced in the shell by running
nautilus '~'
I can see these options to solve this bug:
1. Call bash when executing commands. This implies that any bash substitution variable would occur. For instance, pressing Alt+F2 and typing "nautilus $HOME" would open the home directory.
2. Substitute the tilde character with the home directory. I find this dangerous, since we could make a wrong assumption of what the user wanted. We could think of ways to restrict tilde substitution, for instance, only substitute tilde when: 1) tilde is the first character; 2) the file should exist on system.
The problem is that nautilus tries to open a file name '~' in the current working directory. This can be reproduced in the shell by running
nautilus '~'
I can see these options to solve this bug:
1. Call bash when executing commands. This implies that any bash substitution variable would occur. For instance, pressing Alt+F2 and typing "nautilus $HOME" would open the home directory.
2. Substitute the tilde character with the home directory. I find this dangerous, since we could make a wrong assumption of what the user wanted. We could think of ways to restrict tilde substitution, for instance, only substitute tilde when: 1) tilde is the first character; 2) the file should exist on system.
I would like to hear more opinions!
Ian L.