SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: tinker123 on January 29, 2020, 05:07:42 pm

Title: Launching a BASH terminal from VSE
Post by: tinker123 on January 29, 2020, 05:07:42 pm
SlickEdit 2011 (v16.0.3.0 64-bit)
CentOS Linux release 7.6.1810 (Core)

I put a custom button on my slickedit tool bar and put the command launch-os-shell in it.

When I click the button I get an error message in my status bar:

Quote
"xterm program not found"

I tried setting both def_linux1_shell and def_linux2_shell to bash, but no change.

How can I set up the custom button ( or the launch-os-shell  command ) to launch BASH and launch it in the directory of the buffer I am editing?




Title: Re: Launching a BASH terminal from VSE
Post by: patrick on January 29, 2020, 05:47:14 pm
SlickEdit v16 is looking for the xterm terminal emulator, which isn't installed on your system.  It's not installed by default on many distributions now, because without extra configuration on the user's part, it uses ugly X bitmap fonts.

I'm going to guess that with the default window manager on CentOS, the terminal emulator is gnome-terminal, so if you edit the custom button's command to be "xcom /usr/bin/gnome-terminal", that should start up the terminal for you.  If the "Set current directory when switching buffers" setting under Tools -> Options -> File Options -> Open is turned on, then the working directory of the window will be wherever current buffer's file is located.  Otherwise, the shell will mostly start in the root directory of your active project.

Title: Re: Launching a BASH terminal from VSE
Post by: tinker123 on January 29, 2020, 06:30:29 pm
xcom /usr/bin/gnome-terminal

That worked!

Thank you!