Skip to content
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] script mode didn't find scripts under $HOME/.config/rofi/scripts/ #2043

Closed
2 tasks done
kuppo opened this issue Oct 26, 2024 · 2 comments
Closed
2 tasks done

[BUG] script mode didn't find scripts under $HOME/.config/rofi/scripts/ #2043

kuppo opened this issue Oct 26, 2024 · 2 comments
Labels
Milestone

Comments

@kuppo
Copy link

kuppo commented Oct 26, 2024

Rofi version (rofi -v)

Version: 1.7.5

Configuration

default config with rofi -no-config

Theme

no theme

Timing report

No response

Launch command

rofi -show Mode -modes "Mode:script.sh"

Step to reproduce

  1. Suppose I have a script under $HOME/.config/rofi/scripts/script.sh with +x bit set.
  2. when I run rofi -show Mode -modes "Mode:script.sh", it gives an error 'no such file or directory'

Expected behavior

rofi should find the script and runs it.

Actual behavior

It give error about 'no such file and dirctory'

Additional information

rofi-script manual page says, I quote,

Scripts located in the following location are loaded on startup:

  • The script is in $XDG_CONFIG_PATH/rofi/scripts/, this is usually ~/.config/rofi/scripts/.

The XDG specification doesn't have a variable called XDG_CONFIG_PATH, only XDG_CONFIG_HOME. Don't know if this is just an manual typo or an implementation error. Anyhow, it doesn't work.

Using wayland display server protocol

  • No, I don't use the wayland display server protocol

I've checked if the issue exists in the latest stable release

  • Yes, I have checked the problem exists in the latest stable version
@kuppo kuppo added the bug label Oct 26, 2024
@DaveDavenport
Copy link
Collaborator

DaveDavenport commented Oct 26, 2024

aah, that is not clearly documented..
If you have a file script.sh in ~/.config/rofi/scripts/
this is made available as mode automatically.
You do not need to 'load it again'.

You can use it by doing: rofi -show script
this is showin in rofi -h

Detected user scripts:
• script (/home/qball/.config/rofi/scripts/script.sh)

@kuppo
Copy link
Author

kuppo commented Oct 26, 2024

aah, that is not clearly documented..
If you have a file script.sh in ~/.config/rofi/scripts/
this is made available as mode automatically.
You do not need to 'load it again'.

You can use it by doing: rofi -show script
this is showin in rofi -h

Detected user scripts:
• script (/home/qball/.config/rofi/scripts/script.sh)

Yes, you are right. It automatically works as a mode. We can close it here. Thank you!

@DaveDavenport DaveDavenport added this to the 1.7.6 milestone Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants