preferences icon indicating copy to clipboard operation
preferences copied to clipboard

Ability to remove file from disk would be great.

Open Schandlich opened this issue 9 years ago • 4 comments

Preferences.remove('com.your.app.identifier') or something similar would be fantastic.

Schandlich avatar Nov 28 '16 23:11 Schandlich

Is there a possible way to it? Anyone?

SebastinSanty avatar Dec 08 '16 11:12 SebastinSanty

I ended up doing this, but I am new to node and I am sure I messed something up. var fs = require('fs'); var homedir = require('os-homedir')(); var path = require('path'); var dirpath = path.join(homedir, '.config', 'preferences'); var filepath = path.join(dirpath, "namespace you used when you created the file.pref"); fs.unlinkSync(filepath);

Schandlich avatar Dec 08 '16 22:12 Schandlich

Preferences.remove('com.your.app.identifier') or something similar would be fantastic.

Actually it would break compatibility. It's however a good idea, we could release it in the next major version, thanks.

lastguest avatar Dec 12 '16 11:12 lastguest

Any progress here?

stephenmathieson avatar Feb 20 '18 20:02 stephenmathieson