Menu

#1113 Linux: xfce4 and gnome terminal can not be terminated

Undefined
applied
linux (2) UI (54)
Patch
2021-08-03
2021-06-30
bluehazzard
No

If i run a console application (hello world) on linux with the xfce4-terminal or the gnome-terminal the console outputs "process terminated 0" but the console application is still running in the foreground.
So it is not possible the terminate the running console program in codeblocks.

after reading some time, i found out, that this two terminals fork themself after executing the command from the command line argument, and close immediately. To prevent this behaviour i suggest the attached patch: add command line argument to "--wait" and "--disable-server"

i could not test the other two consoles on my linux machine

ref:
https://bugzilla.xfce.org/show_bug.cgi?id=14544

1 Attachments

Discussion

  • Teodor Petrov

    Teodor Petrov - 2021-06-30

    The main problem is - would this work on all systems we support out of the box. According to the linked topic - gnome-terminal requires version 3.28 (which is relatively new - released on 2018-03-12, according to wikipedia). No idea about the xfce option and if it works on all supported OSes/distros.

    Ubuntu 18.04 supports --wait, so it might not be that bad.
    Ubuntu 16.04 doesn't have it and there we would fail to start a terminal.
    CentOS 7 supports --wait.

    So, I suppose go on with this and lets see how many people complain.

     
  • Teodor Petrov

    Teodor Petrov - 2021-06-30
    • labels: sdk, linux --> linux, UI
     
  • Teodor Petrov

    Teodor Petrov - 2021-06-30

    The option in terminology is

    $ terminology --help | grep single
      -s, --single            Force single executable if multi-instance is enabled
    

    But I don't seem to need it in my version. The reuse of processes is an option, but I'm not sure what is the default.

    edit: -s is the way to go and it is safe to use even if the option for reuse of processes is not enabled.

     

    Last edit: Teodor Petrov 2021-07-01
  • bluehazzard

    bluehazzard - 2021-07-01

    should we try to check the version of the terminal with a squirrel script?

     
  • Teodor Petrov

    Teodor Petrov - 2021-07-02

    Nope, push as is and lets see if somebody complains first.

     
  • Andrew Cottrell

    Andrew Cottrell - 2021-07-02

    If needed I can test binaries on Linux Mint 20.1 XFCE and XUbuntu 2004 ruining a guests on Virtual Box.

     
  • Teodor Petrov

    Teodor Petrov - 2021-07-29

    @bluehazzard Would you push this?

     
  • bluehazzard

    bluehazzard - 2021-08-03
    • status: open --> applied
     
  • bluehazzard

    bluehazzard - 2021-08-03

    in r12488

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.