• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to update from within Companion
#1
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.
Reply
#2
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.
Reply
#3
(Yesterday, 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!
Reply
#4
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
Reply
#5
(Yesterday, 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 . . .
Reply




Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2025 MyBB Group.