wifi-password icon indicating copy to clipboard operation
wifi-password copied to clipboard

Linux Mint - no such directory /etc/NetworkManager/system-connections/' + ssid

Open MaxPleaner opened this issue 8 years ago • 1 comments

in wifi-password/node_modules/linux-wifi-password/index.js, I needed to change line 7 from

var args = ['cat', '/etc/NetworkManager/system-connections ' + ssid];

to

var args = ['cat', '/etc/NetworkManager/system-connections/Auto\ ' + ssid];

(the difference being /Auto\)

I appreciate that this package has taught me where this info is located. I'm not sure which other systems this fix might be needed in as well.

MaxPleaner avatar Sep 11 '15 10:09 MaxPleaner

@MaxPleaner I installed Linux Mint in a virtual machine and tested this, it seems that the network manager adds the word Auto\u0020 to the first "eth0" and "wlan0" it finds, so the modification you suggested is not necessary because Auto\u0020 is part of the name of your Internet connection. Assuming that the name is "Foobar" the SSID will be "Auto Foobar" like this:

$ wifi-password "Auto Foobar"

Also, at the time of writing this comment the command has already changed.

cixtor avatar Jun 14 '16 22:06 cixtor