Page 1 of 1

Custom command for launching software

Posted: Sat Mar 26, 2022 1:00 pm
by vfxgeek
Hi,

I'm working on Ubuntu which is not set to English, and because of that one Nuke plugin has a problem with commas and dots, and in the result it's causing an error.
A workaround is to launch Nuke with: LC_NUMERIC="C" ./Nuke12.0

To launch NukeX I have created a shell script:

Code: Select all

#!
LC_NUMERIC="C" 
./Nuke12.2 --nukex
When I launch this from terminal the Nuke plugin works correctly. But when I launch Nuke from CGRU tray software list (which points to this .sh script) the plugin still causes the error. It seems like it's ignoring the locale change command.
Why can that be?

Lukas

Re: Custom command for launching software

Posted: Sun Mar 27, 2022 4:48 pm
by timurhai
Hi! Try to trace a script running. For example echo something:

Code: Select all

#!/bin/bash
export LC_NUMERIC="C"
echo LC_NUMERIC set to $LC_NUMERIC
./Nuke12.2 --nukex
Also add "#!/bin/bash" and "export" keywords.

For testing better to launch terminal, go to cgru root folder, setup cgru and launch nuke command.

Code: Select all

cd /opt/cgru
source ./setup.sh
nuke

Re: Custom command for launching software

Posted: Thu Apr 07, 2022 9:49 am
by vfxgeek
I've launched Keeper from terminal, to see what it's doing when launching software.
Aparrently it's not executing the shell script which I've created and set as the executable for NukeX, but simply it's running "nuke --nukex"

Re: Custom command for launching software

Posted: Wed Apr 13, 2022 4:47 pm
by timurhai
Hi! (sorry for a long delay)

If you want afanasy and keeper (cgru) to launch your own "nuke" command, you should add it to path.
But cgru on setup (in setup.sh) adds its own "nuke" and other commands in PATH.
So you should place a script in cgru root folder line cgru/setup_custom.sh, where you can:

Code: Select all

export PATH=/path/to_your/bins:$PATH
And setup.sh will source it:
https://github.com/CGRU/cgru/blob/master/setup.sh#L29

See https://github.com/CGRU/cgru/blob/maste ... _README.sh

Another way that prefer some companies, is not use any software setup and launch scripts from cgru.
CGRU software setup and launch scripts main role is to show you how to setup, what you need to that, what environment matters.