You are not logged in.
Pages: 1
At work I have noticed something I have not seen ever before on Linux (I think): A program started using dmenu behaves different to when started from a command prompt in bash.
The program in this case is ANSYS Workbench and from inside Workbench Design Manager and Mechanical. These are expensive but capable programs so my employer pays.
Here is what happens:
dmenu
Workbench fires up OK
I can import existing projects OK
If I fire up Design Manager (3D CAD) the GUI starts and it says it is reading and rendering the model but nothing happens apart from the cooling fan revving up. Same if I try Mechanical (structural and thermal caclulations).
cli
Everything works the way it should despite the fact that I am running this on a Linux flavour that is not officially supported by ANSYS (som trickery related to graphics libraries needed after installation).
All this is on Ubuntu 14.04, or rather, a corporate tweak of Ubuntu 14.04.
What I am actually invoking is a one-line shell script starting Workbench with a set of parameters. Same script regardless of dmenu or cli case.
Does anyone know what might be going on here?
/Martin
"Problems worthy of attack
prove their worth by hitting back."
Piet Hein
Offline
I suspect that bash i.e. cli sets certain variables, important for ANSYS, while dmenu doesn't necesarilly process .bashrc?!
You can try to create little script in $HOME/bin to test this ... see dmenu/gmrun/cli - check terminal for complete solution
Postpone all your duties; if you die, you won't have to do them ..
Offline
Aha! Of course, that must be it.
I had to add a couple of lines to .baschrc to aid the running of ANSYS programs.
Thanks,
/Martin
"Problems worthy of attack
prove their worth by hitting back."
Piet Hein
Offline
Would it be possible to post the added lines and perhaps your startup script as well?
It may prove useful for others who have this problem
EDIT: thread moved to Help & Support (Other)
Last edited by Head_on_a_Stick (2016-12-10 11:07:51)
Offline
Aha! Of course, that must be it.
I had to add a couple of lines to .baschrc to aid the running of ANSYS programs.Thanks,
/Martin
You're welcome.
But, I don't think that adding anything to .bashrc or similar will help, as cli version is working ok.
Rather, you should create bash script - to be started from dmenu - which will then start the program. (As per instruction in link I linked - just replace 'ranger' with your program name.)
Or I misunderstood what the problem is?
Postpone all your duties; if you die, you won't have to do them ..
Offline
@Head_on_a_stick: I am not at work so I can't post script and added lines to .bascrc -- I don't have that kind of memory.
@iMBeCil: The added lines I was mentioning are needed to make the ANSYS programs run at all.
I have followed these instructions.
/Martin
"Problems worthy of attack
prove their worth by hitting back."
Piet Hein
Offline
AFAIK, dmenu ignores bashrc or whatever login shell you are using. That makes sense for it to remain shell agnostic and keep working regardless of the shells. So (bash) defined aliases and functions don't work with dmenu. It can be annoying sometimes, but I guess it's the way it should be.
Last edited by Snap (2016-12-11 06:59:31)
Offline
(bash) defined aliases and functions don't work with dmenu. It can be annoying sometimes, but I guess it's the way it should be.
The same applies to gmrun or commands launched from rc.xml, menu.xml, etc.
bash_aliases is only for the terminal.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
Offline
Thanks guys, starting ANSYS programs from cli is OK for now.
My next ANSYS challenge is to install their Electromagnetics suite. This is something ANSYS got when buying a company called Ansoft. The electromagnetic tools are getting integrated with the rest but look-and-feel is still Ansoft rather than ANSYS and, the installation process is a little different. There is a shell script looking for Linux version and I need to fool it...
Searching the Internet I find nothing :-(
/Martin
"Problems worthy of attack
prove their worth by hitting back."
Piet Hein
Offline
There is a shell script looking for Linux version and I need to fool it...
Try:
sudo apt purge bunsen-os-release
Once the script has run that package can be re-installed
Offline
Well, I doubt that would help much as I am using ANSYS programs on my work laptop which is running a tweaked Ubuntu 14.04 (tweaked to work in my employer's IT system). ANSYS only supports RedHat and Suse. I think there is a way to skip over the OS identification but since I am no good at bash scripting I haven't figured out how yet. It may be a simple as adding an 'ignore-OS' option to the script but right now I don't know.
Why do your employer go for a Linux flavour not supported by major CAE vendors? I hear you cry. My answer is I do not know and this is not the first time.
/Martin
"Problems worthy of attack
prove their worth by hitting back."
Piet Hein
Offline
Well, I doubt that would help much as I am using ANSYS programs on my work laptop which is running a tweaked Ubuntu 14.04
D'oh! Yes, of course, I moved the thread myself. Ahem. :8
Offline
Pages: 1