Desktop Entry - source rip-environment

More
4 years 2 months ago #250121 by zz912
I use RIP installation.  Using LCNC is fine. But setting rip environment is annoying.
I have to:
1) run terminal
2) set directory: cd /home/zdenek/linuxcnc/linuxcnc-2.8/scripts
3) use: source rip-environment


I wanted make Desktop Entry:
Code:
[code][Desktop Entry]
Code:
Version=1.0
Code:
Type=Application Name=RIP environment Comment= Exec=xfce4-terminal -e "source /home/zdenek/linuxcnc/linuxcnc-2.8/scripts/rip-environment" -H Icon= Path= Terminal=true StartupNotify=false
[/code]
But it dont work.

Attachment not found


I apologize for Czech Location.

Please Log in to join the conversation.

More
4 years 2 months ago #250123 by arvidb
I'm not sure how to set up a desktop entry for this, but you can at least make it easier: you don't have to change directory. Just run '. /home/zdenek/linuxcnc/linuxcnc-2.8/scripts/rip-environment'.

I use run-in-place too, and I use the bash search function: once you have run the above line once, the next time you can type Ctrl-r and then just type 'rip' and the entire line will be found (just press Enter to execute). So not much to type after all.

Please Log in to join the conversation.

More
4 years 2 months ago #250126 by zz912
Thanks for reply

. /home/zdenek/linuxcnc/linuxcnc-2.8/scripts/rip-environment
or
source /home/zdenek/linuxcnc/linuxcnc-2.8/scripts/rip-environment

works in terminal,

but I would like have something, what I can run mouse doubleclick.

Please Log in to join the conversation.

More
4 years 2 months ago #250127 by tommylight
Exec=xfce4-terminal -e "source /home/zdenek/linuxcnc/linuxcnc-2.8/scripts/rip-environment" -H
Try
Exec=xfce4-terminal -e "/home/zdenek/linuxcnc/linuxcnc-2.8/scripts/rip-environment" -H
Or
Exec=xfce4-terminal -e "./home/zdenek/linuxcnc/linuxcnc-2.8/scripts/rip-environment" -H

Please Log in to join the conversation.

More
4 years 2 months ago #250130 by zz912
Exec=xfce4-terminal -e "./home/zdenek/linuxcnc/linuxcnc-2.8/scripts/rip-environment" -H
- this dont work. Same problem as above.

Exec=xfce4-terminal -e "/home/zdenek/linuxcnc/linuxcnc-2.8/scripts/rip-environment" -H
- this is better, but i can not add any commands (halshow, pncconf, .....)
 

Attachment not found



 

Please Log in to join the conversation.

More
4 years 2 months ago #250133 by tommylight
Maybe
Exec=xfce4-terminal -e "/home/zdenek/linuxcnc/linuxcnc-2.8/scripts/rip-environment linuxcnc configs/nameoffolder/yourinihere.ini" -H
Just change the stuff after configs.

Please Log in to join the conversation.

More
4 years 2 months ago #250134 by JT
Why don't you just build a deb and install it? Problem solved...

JT

Please Log in to join the conversation.

More
4 years 2 months ago #250140 by phillc54
You can call the linuxcnc script directly, it will set the environment, this is from a desktop launcher in MXLinux21
Code:
xfce4-terminal -e "/home/phill/linuxcnc-dev/scripts/linuxcnc /home/phill/linuxcnc/configs/1_met/aaa.ini" -H
 

Please Log in to join the conversation.

More
4 years 2 months ago #250142 by zz912
Thanks for help. I solve it:
Code:
[Desktop Entry] Version=1.0 Type=Application Name=RIP environment Comment= Exec=xfce4-terminal -H -e 'bash -c \ "source /home/zdenek/linuxcnc/linuxcnc-2.8/scripts/rip-environment; $SHELL"' Icon= Path= Terminal=true StartupNotify=false

Please Log in to join the conversation.

Time to create page: 0.098 seconds
Powered by Kunena Forum