-
Notifications
You must be signed in to change notification settings - Fork 625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Searching for a theme fails when a file exists in CWD with the same name #1889
Comments
Here is a simple bash script that can be used to test this. ./repro.sh
With file in CWD - @theme without .rasi
should pass: failed
should pass: failed
should fail: passed
Without file in CWD - @theme without .rasi
should pass: passed
should pass: passed
should fail: failed
With file in CWD - @theme full name
should pass: passed
should pass: passed
should fail: passed
Without file in CWD - @theme full name
should pass: passed
should pass: passed
should fail: failed |
To avoid confusion, what do you mean with version 1.7.6? |
@DaveDavenport That was a typo. I downloaded the latest stable (1.7.5) and tested against it. |
Thanks, and thanks for updating the issue. I see that on trying to open the file it does: fn = rofi_expand_path(file)l
if ( g_file_test(fn,EXISTS)){
} Before it tries to look up the path. |
This needs testing. |
The specified file can either by name, filename,full path. If a filename is provided, it will try to resolve it in the following order:
A name is resolved (if it has no valid extension) as a filename by appending the |
pushed some more small (backward comp.) fixes. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Rofi version (rofi -v)
Version: 1.7.1 AND Version: 1.7.5
Configuration
N/A
Theme
N/A
Timing report
https://gist.github.com/aarondill/405e6a5811943cbcd84fa6c59c47a8b2
Launch command
rofi -show
Step to reproduce
mkdir -p ~/.config/rofi
~/.config/rofi/config.rasi
with the contents@theme "theme_name"
touch ~/.config/rofi/theme_name.rasi
theme_name
rofi -show
rofi
(/ was the absolute path):touch ~/.config/rofi/theme_name
(notice no.rasi
)rofi -show
rm ~/.config/rofi/theme_name
rm ./theme_name
rofi -show
Expected behavior
The presence of a file in your CWD with the name of the theme should not rofi's ability to search
XDG_CONFIG_HOME
(or other files) for the themeActual behavior
A file named the same as the theme in your CWD makes rofi search for the theme without a file extension.
Additional information
This is not an issue with
@theme "theme_name.rasi"
. Since the.rasi
extension is never added anyways,theme_name.rasi
is correctly found.Using wayland display server protocol
I've checked if the issue exists in the latest stable release
The text was updated successfully, but these errors were encountered: