Add ROFI_PASS_DEFAULT_USER environment variable#112
Conversation
|
Hmmm. it seems that #108 makes changes to default_user as well. @carnager @blueyed This seems like bad practice to me for a few reasons:
These issues can be mitigated to varying degrees by running from source using your own fork, but that seems like an obviously inferior solution. This raises the more general question of how exactly rofi-pass should handle configuration: I think that the best approach would be to look for a file in XDG_DATA_HOME which would be sourced ahead of running rofi-pass so that things like default-user and keybindings can be configured. Thoughts? |
|
rofi-pass first reads its internal config, then overrides settings from global config in /etc/rofi-pass.conf and then overrides settings from XDG_CONFIG_HOME/rofi-pass/config So yes, you can easily edit every setting in your own config file. Anyway, I like the idea to be able to override this with a variable. |
Add ROFI_PASS_DEFAULT_USER environment variable Former-commit-id: f03ed24
This leaves the current behavior intact and is very portable across shells sh/bash/zsh, though this should not matter since the shell is explicitly specified.