Skip to content

Commit 02f264a

Browse files
committed
Fix #8815
1 parent 9700a96 commit 02f264a

File tree

1 file changed

+5
-0
lines changed
  • kittens/quick_access_terminal

1 file changed

+5
-0
lines changed

kittens/quick_access_terminal/main.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"github.com/kovidgoyal/kitty/kittens/panel"
1010
"github.com/kovidgoyal/kitty/tools/cli"
1111
"github.com/kovidgoyal/kitty/tools/config"
12+
"github.com/kovidgoyal/kitty/tools/utils"
1213

1314
"golang.org/x/sys/unix"
1415
)
@@ -53,7 +54,11 @@ func main(cmd *cli.Command, opts *Options, args []string) (rc int, err error) {
5354
argv = append(argv, fmt.Sprintf("--margin-right=%d", conf.Margin_right))
5455
}
5556
if len(conf.Kitty_conf) > 0 {
57+
cdir := utils.ConfigDir()
5658
for _, c := range conf.Kitty_conf {
59+
if !filepath.IsAbs(c) {
60+
c = filepath.Join(cdir, c)
61+
}
5762
argv = append(argv, fmt.Sprintf("--config=%s", c))
5863
}
5964
}

0 commit comments

Comments
 (0)