-
-
Notifications
You must be signed in to change notification settings - Fork 645
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
Terminal param is not working on latest xbar #680
Comments
@bluescreen10 Thanks for reporting. What do you expect that to do? Open the terminal? |
@@bluescreen10 does this work for this use case?
|
The example I provided was to exhibit the problem. My use case is slightly different, I'm running a script but want to see the output in the terminal and noticed that |
The current README includes this (in the
Shouldn't the use of Terminal work without extra configuration (e.g., Side note: as it's currently worded, it's also ambiguous whether the FYI - in my use case, I'm trying to get it to work with the "SSH Menu" plugin (adapted for xbar). In BitBar, it would open Terminal with ssh and the given parameters so you could quickly open an SSH connection to a list of hosts. |
@dperfect @bluescreen10 thanks, you're both right. This isn't currently working as expected, and needs a little more work, so I'm going to mark it as a bug. |
Can you try the "Run in terminal" option in the menu and confirm that it is working? |
The "Run in terminal" option works for me (v2.0.39-beta). |
I have moved Run in terminal into the xbar folder, and next up we need to add support for |
has this been merged? |
Thanks for looking into this issue. FYI, my use case is: I was previously using bitbar to run certain commands that require sudo password input (such as for mounting certain types of drive via FUSE). Something changed when I upgraded to xbar, and now a terminal no longer pops up when password entry is required. |
Running into this same issue on xbar 2.0.35-beta with macOS Catalina 10.15.7. Sounds like y'all got things handled but I wanted to add some further info. The following example script:
does not open the terminal in xbar 2.0.35-beta like I would expect it to. However the same example app (with I also noticed that my Thanks in advance! |
Has this issue been addressed yet? I'm running 2.0.42 and having same issue. |
for now you can work around it with |
I am hitting this issue as well. Have the changes been checked in so that I could download/compile my own version or do we have a timeframe that we might see this implemnted. I did try bluescreen10's approach as listed above and it does run the script but the terminal app does not start so I can't see the output. |
Has there been any movement on this issue? It's something I used heavily in BitBar and would love to see it back in Xbar. |
@hdp-sami This worked for me: echo "command_description_here|shell=osascript param1=-e param2='tell application \"terminal\" to do script \"/path/to/my/script.sh my_param1 my_param2\"' refresh=true" Sometimes this causes xbar to crash, so I just need to restart xbar and try again. Also note that triggering the command from the xbar menu will cause the terminal app to appear in the background somewhere so you can provide input, but it won't be on top so you'll need to click the terminal icon on your dock to see it. |
@knaccc Thanks. I can confirm that solution is working for me. It would still be lovely to have the native "terminal" switch usable again but I can definitely work with this. |
Thanks for bearing with us here, I've been working on this today and I think I've got a solution that works. @hdp-sami and @knaccc would you be able to help me test it? It's in the new release. |
ssh.sh pluging still does not work on the new release |
@matryer Thanks for your work on this! There is an improvement with the beta, but I get two terminal windows appearing in the foreground instead of one. To recap: if I use the "osascript/tell application terminal" workaround method I posted above, this causes a single terminal window to appear, but in the background. Therefore I can simply click the terminal icon on the dock to get to it. With this new beta, I can successfully use terminal=true instead of the osascript workaround, and a terminal window does appear in the foreground. However, two terminals are displayed in the foreground. One is a regular terminal with an interactive prompt. The second terminal window is the one that launches my bash script and allows me to provide input, such as a sudo password. |
@knaccc thank you for helping get this right. I couldn't get your version to properly work, but I found another approach that is working. Please test the new release. |
@matryer Working perfectly, thanks!! |
i don't understand what im missing here? what needs to be added and where to make it work? here is the plugin:
output of run in terminal:
|
@C4Wiz try: |
yep, that works perfectly! thank you so much |
Thanks everyone. |
The following xbar plugin will not work on version 2.0.35-beta
When clicking on the menu it doesn't do anything.
The text was updated successfully, but these errors were encountered: