A method to run a RIP build from a desktop icon is to create
a custom desktop icon and a helper script that sets up the
required environment.

For example, a custom desktop file:
$ cat ~/Desktop/f_rip.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=F_RIP
Comment=
Exec=/home/myusername/bin/f_rip.sh
Icon=
Path=
Terminal=false
StartupNotify=false

The helper script for a RIP build (located in /data/f/linuxcnc-dev):
$ cat /home/myusername/bin/f_rip.sh
#!/bin/bash 
cd /data/f/linuxcnc-dev
source scripts/rip-environment
xterm -e linuxcnc

Notes:
1) Processing of .desktop files doesn't seem to support
   tilde (~) expansion on the system i tried, hence the
   explicit use of /home/myusername/...

2) The use of a terminal (xterm) allows display of console
   messages.

3) Startup of ancillary commands from a terminal (for example
   halscope, halcmd, sim_pin, halshow,  etc.) for simultaneous
   usage with the running LinuxCNC will require proper
   sourcing of the rip-environment script in the invoking shell!
-- 
Dewey Garrett


------------------------------------------------------------------------------
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to