summaryrefslogtreecommitdiffstats
path: root/doc/rofi-theme.5
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2023-08-15 19:12:14 +0200
committerDave Davenport <qball@gmpclient.org>2023-08-15 19:12:14 +0200
commitad06fb95161a6b140ec7329ef2bbae6837dc4d45 (patch)
tree9a8f79e28089e6b6355b0ea0c9150efa464fa4fe /doc/rofi-theme.5
parent528419269e7939e851ea426e34fb7ae2eec0a561 (diff)
[Theme] Try to fix importing of theme.
- Fix the two place of resolving into one method. - Do not accept file in CWD. - Prefer file if it exists in same directory as parent file that imported it. fixes: #1889
Diffstat (limited to 'doc/rofi-theme.5')
-rw-r--r--doc/rofi-theme.56
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/rofi-theme.5 b/doc/rofi-theme.5
index 0c800092..28d2413c 100644
--- a/doc/rofi-theme.5
+++ b/doc/rofi-theme.5
@@ -2408,6 +2408,10 @@ If a filename is provided, it will try to resolve it in the following order:
.RS
.IP \(bu 2
+If path is absolute and file exists, it will pick open the file. This includes expansion of '~' or '~user'
+.IP \(bu 2
+On an \fB\fC@import\fR or \fB\fC@theme\fR it looks in the directory of the file that tried to import it.
+.IP \(bu 2
\fB\fC${XDG_CONFIG_HOME}/rofi/themes/\fR
.IP \(bu 2
\fB\fC${XDG_CONFIG_HOME}/rofi/\fR
@@ -2419,7 +2423,7 @@ If a filename is provided, it will try to resolve it in the following order:
.RE
.PP
-A name is resolved as a filename by appending the \fB\fC\&.rasi\fR extension.
+A name is resolved (if it has no valid extension) as a filename by appending the \fB\fC\&.rasi\fR extension.
.SH Examples
.PP