Posts: 26
Threads: 4
Joined: Sep 2024
Reputation:
0
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,196
Threads: 302
Joined: Apr 2012
Reputation:
267
Yesterday, 09:32 AM
(This post was last modified: Yesterday, 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: 14,196
Threads: 302
Joined: Apr 2012
Reputation:
267
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