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

[Feature Request] There are options for Change targeted terminal #57

Closed
benyaminl opened this issue Oct 10, 2024 · 5 comments · Fixed by #58
Closed

[Feature Request] There are options for Change targeted terminal #57

benyaminl opened this issue Oct 10, 2024 · 5 comments · Fixed by #58

Comments

@benyaminl
Copy link

benyaminl commented Oct 10, 2024

Hello, I just want to ask, is it possible to change the

cmdline = `gnome-terminal -- bash -c '${command} ${containerName} ${args};read i'`;
} else {
cmdline = `gnome-terminal -- ${command} ${containerName} ${args}`;

With other terminal command?

I'm on gnome but I'm not using gnome-terminal (sorry, haha...)

Or I need to change the code myself for that?

Thank you

EDIT:

For now I do have workaround by making gnome-terminal shell script to get the command using xfce4-terminal
/usr/local/bin/gnome-terminal

#!/bin/bash
if [ $1 == '--' ]; then
  shift
  xfce4-terminal -x $@
else
  xfce4-terminal $@
fi  
@rgolangh
Copy link
Owner

Thanks for reporting this.
👍 +1 for clever script , but I would hate to force you do that. I think it should be easy to put that in a setting, and fallback to gnome terminal otherwise.

@rgolangh
Copy link
Owner

@benyaminl can you please checkout the branch from #58 and configure your terminal? I don't have an installation with xfce4 at the moment. I did test few other terminals, some run as flatpaks.

@benyaminl
Copy link
Author

benyaminl commented Oct 13, 2024

@benyaminl can you please checkout the branch from #58 and configure your terminal? I don't have an installation with xfce4 at the moment. I did test few other terminals, some run as flatpaks.

Yeah, thanks man it works

image

Just the process of running from the alpha/test version is quite strange I guess, I need to logout and relogin to make the new version works.

the command line for xfce terminal is

xfce4-terminal -x , with extra space in the end. like gnome-terminal -- . I think this need to be conveyed to the user? *or based on the extension, you can assume, most user is developer so.. they know it. haha..

image

EDIT: without extra space, terminal works

@rgolangh
Copy link
Owner

what do you see in the journalctl and what happens if you don't add the space?
I tested here with a script, similar to what you did, and I don't see the space is needed.

@benyaminl
Copy link
Author

@rgolangh sorry, seems it works as it's without space, I just retest it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants