Posts: 30
Threads: 4
Joined: Sep 2024
I just attempted to update Companion via it's popup, and find that I cannot, due to the choice of "gnome-terminal" as a window to run the update, as opposed to something such as xterm (xterm -e <program> should do the same thing) which should be available on most any platform, as opposed to "gnome-terminal" that is *NOT* available on Linux distros that run, for instance KDE, and not Gnome.
Not a biggie, but would help portability.
Posts: 14,382
Threads: 302
Joined: Apr 2012
04-26-2025, 09:32 AM
(This post was last modified: 04-26-2025, 10:01 AM by Zubersoft.)
I just tried to test xterm on a standard Ubuntu distro, and xterm was not installed. So I also can't just depend on something being installed that isn't installed by default. So I'll have to see if I can fallback to using xterm if gnome-terminal is not available.
Mike
UPDATE:
I'm testing some different approaches now to updating on linux to see if I can have a more robust approach. In the worst case, I can use command -v xterm to see if it's installed first before falling back to gnome-terminal.
Posts: 30
Threads: 4
Joined: Sep 2024
04-26-2025, 10:25 AM
(This post was last modified: 04-26-2025, 02:27 PM by tadawson.)
(04-26-2025, 09:32 AM)Zubersoft Wrote: I just tried to test xterm on a standard Ubuntu distro, and xterm was not installed. So I also can't just depend on something being installed that isn't installed by default. So I'll have to see if I can fallback to using xterm if gnome-terminal is not available.
Mike
UPDATE:
I'm testing some different approaches now to updating on linux to see if I can have a more robust approach. In the worst case, I can use command -v xterm to see if it's installed first before falling back to gnome-terminal.
The difference is that xterm should be an easy install on Ubuntu with X11 native . . . gnome, not being a graphics system but rather a desktop, isn't on some distros at all. (I can't say that I have used Ubuntu lately, but to date, professionally, have not found an X based system without xterm . . .) Options are good too . . . thanks!
Posts: 14,382
Threads: 302
Joined: Apr 2012
I have both xterm and gnome-terminal working now, so this should cover more scenarios. The only issue is that I don't have error handling at the moment for the situation where neither is supported. That is something I'll have to investigate at some point.
Mike
Posts: 30
Threads: 4
Joined: Sep 2024
(04-26-2025, 11:20 AM)Zubersoft Wrote: I have both xterm and gnome-terminal working now, so this should cover more scenarios. The only issue is that I don't have error handling at the moment for the situation where neither is supported. That is something I'll have to investigate at some point.
Mike
You could just stick with the far, far, more common xterm, and if Ubuntu (or whatever) does not have it, prompt the user to simply run "apt install xterm", "dnf install xterm" or whatever . . .