Closed ruzickap closed 4 years ago
I’l l try to reproduce the issue. I bet you’re not just looking for a mass rule delete, can you share what you’d like to do here ? There may be a more suitable solution.
Sure...
I'm trying to configure Fluor using command line (probably defaults write
is a good choice).
I do not want to use GUI at all and have it configured, before first start.
It means if I get a new MacOS the steps should be like:
brew install fluor
sudo sqlite3 ...
defaults write ...
defaults write ...
...
sudo reboot
And everything should be ready to use... But the example above when I'm trying to add 2 Application Rules using defaults write
doesn't work for me.
I successfully reproduced the bug.
defaults read com.pyrolyse.Fluor
shows outdated information. But ~/Library/Preferences/com.pyrolyse.Fluor.plist
is up-to-date. It must be a cache issue or something. We would lose time trying to solve it.
Anyway, instead of defaults [command] com.pyrolyse.Fluor
just use defaults [command] ~/Library/Preferences/com.pyrolyse.Fluor
it should work.
I tried it but still no Rules in the GUI:
$ defaults write ~/Library/Preferences/com.pyrolyse.Fluor AppRules -array '{
behavior = 1;
id = "org.mozilla.firefox";
path = "/Applications/Firefox.app";
}' '{
behavior = 2;
id = "com.googlecode.iterm2";
path = "/Applications/iTerm.app";
}'
I also tried defaults write ~/Library/Preferences/com.pyrolyse.Fluor.plist
just to be sure, but still nothing...
Seems like this is working fine and I'm able to configure rules using command line:
defaults write com.pyrolyse.Fluor AppRules -array-add '
<dict>
<key>behavior</key>
<integer>2</integer>
<key>id</key>
<string>com.googlecode.iterm2</string>
<key>path</key>
<string>/Applications/iTerm.app</string>
</dict>'
Closing...
Hello.
I'm trying to configure Fluor using command line, but it doesn't work for some reason...
I configured 2 application in Fluor (using gui) and got this output:
Then I quit Fluor and removed all it's Application rules using
defaults delete com.pyrolyse.Fluor AppRules
.Then I add new
AppRules
configuration using this command:Then I started Fluor again, but I do not see any defined rules in the window.
I have no idea what needs to be done to set these rules using command line.
Thank you for the answer