mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 01:38:02 +02:00
desktop-ui kitten: Re-read config on every file chooser invocation via portal
Allows easily changing the config without needing to restart the kitten which is difficult to do given its lifetime is managed by the xdg portals service.
This commit is contained in:
@@ -30,7 +30,7 @@ func load_server_config(opts *ServerOptions) (ans *Config, err error) {
|
||||
func run_server(opts *ServerOptions) (err error) {
|
||||
config, err := load_server_config(opts)
|
||||
if err == nil {
|
||||
portal, err := NewPortal(config)
|
||||
portal, err := NewPortal(config, opts)
|
||||
if err == nil {
|
||||
err = portal.Start()
|
||||
if err == nil {
|
||||
|
||||
Reference in New Issue
Block a user