Skip to content

Script works when run from terminal emulator, but not when run from waybar. #3588

Answered by lunarythia
lunarythia asked this question in Q&A
Discussion options

You must be logged in to vote

This was entirely my fault not remotely Waybar's at all. Apparently #!/bin/bash is required to be the first line in a bash script. Go figure, I guess.

What I did was run waybar from the terminal, and saw that when I ran the script, I got /home/amberwing/.config/sway/power-menu.sh: 25: [[: not found, so I looked at the other script I had (downloaded from the Internet, slightly modified), and noticed the #!/bin/bash thing.

Before you laugh, this is my first time writing a script like this. I cannot believe this is what fixed it. Jesus Christ.

Basically what happened was, I saw the #!/bin/bash line and assumed it was some weird comment. This is what I get for my way of diving in head first w…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lunarythia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant