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

replace xterm with gnome-terminal #3703

Closed
eexpress opened this issue Nov 24, 2023 · 7 comments
Closed

replace xterm with gnome-terminal #3703

eexpress opened this issue Nov 24, 2023 · 7 comments

Comments

@eexpress
Copy link

The xterm is small without configure it, and I do not like to make a .Xdefaults config for xterm any more. So I want replace the xterm with well work's gnome-terminal.

In Preferences -> Tools -> Terminal:

  1. when I set as gnome-terminal -e "/bin/sh %c", and click the RUN botton in toolbar to execute, the gnome-terminal is show, but the RUN botton can not display as an "STOP" icon, that's say I can not stop the running application by click the RUN button.
  2. when I set as gnome-terminal -x "/bin/sh %c", it failure to lanuch.

I want click the button to run, click again to stop.

@elextr
Copy link
Member

elextr commented Nov 24, 2023

but the RUN botton can not display as an "STOP" icon, that's say I can not stop the running application by click the RUN button.

IIUC gnome-terminal is a front end for gnome-terminal-server. The server shows the terminal screens and gnome-terminal just tells it what to show and exits. Since Geany knows nothing about the server it watches the gnome-terminal process and when it exits it presumes the run is complete and switches the stop back to run. Unless you can find options that tell gnome-terminal not to behave like this there is not much Geany can do.

when I set as gnome-terminal -x "/bin/sh %c", it failure to lanuch

Thats a gnome-terminal problem, nothing to do with Geany, but I think it expects a list of arguments, not a single string. Also -x is deprecated.

@b4n
Copy link
Member

b4n commented Nov 24, 2023

IIRC gnome-terminal has an option like --disable-factory or similar not to connect to a running instance, if that's indeed the issue.

@elextr
Copy link
Member

elextr commented Nov 24, 2023

This was what google found for me, maybe a newer version has that option.

@b4n
Copy link
Member

b4n commented Nov 24, 2023

Ok so maybe --wait?

@elextr
Copy link
Member

elextr commented Nov 24, 2023

Works for me gnome-terminal -e python3 returns immediately and a window with python REPL pops up, but gnome-terminal --wait -e python3 does not return until after the Python REPL is exited.

Note -e is also deprecated, @eexpress use -- and look at how the arguments need to be structured.

@eexpress
Copy link
Author

-e is also deprecated,

OMG.

@eexpress
Copy link
Author

eexpress commented Nov 25, 2023

Ok so maybe --wait?

Thanks. --wait is work for the Button which show "STOP" icon. but click the button can not stop the thread.

@elextr elextr closed this as completed Nov 25, 2023
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

No branches or pull requests

3 participants