Simple one.... how to eleminate "Do you really want to close LinuxCNC?"

More
1 year 11 months ago #315488 by slowpoke
Thanks , but nanny not required, how do I get axis to just close and not ask?

...and while I'm at it what about eliminating the 30 second delay for computer shut-down, can it just do it when I ask?

Thanks....

Please Log in to join the conversation.

More
More
1 year 11 months ago #315550 by slowpoke

In axis?
linuxcnc.org/docs/stable/html/gui/axis.h...ble_the_close_dialog
 
 I'm not a software guy....
To use this, do I simply add the root_window..... to a particular file, or do I need to tweak the source code and then compile?
I'm up for the former, no clue if I need to re-compile.14.2. Disable the Close Dialog# disable the do you want to close dialog
root_window.tk.call("wm","protocol",".","WM_DELETE_WINDOW","destroy .")

Please Log in to join the conversation.

More
1 year 11 months ago #315552 by cakeslob
put that stuff into a python file and add it to your ini, or in the axisrc file for it to work globally. no need to compile

linuxcnc.org/docs/stable/html/gui/axis.html#sub:axis-axisrc

Please Log in to join the conversation.

More
1 year 11 months ago #315569 by rodw
to save 30 seconds out of your life try

sudo shutdown now

You might need to give permissions to skip the sudo password
askubuntu.com/questions/147241/execute-sudo-without-password

Please Log in to join the conversation.

More
1 year 11 months ago #315592 by slowpoke

put that stuff into a python file and add it to your ini, or in the axisrc file for it to work globally. no need to compile

linuxcnc.org/docs/stable/html/gui/axis.html#sub:axis-axisrc
 
Code:
~/.axisrc   ???

where is .axisrc?  or do I need to create it?  and does it need a file name before the extension?
What does  "
Code:
~/"
mean?
I'm guessing here.... there might be a file ending with
Code:
".axisrc"  possibly in the folder associated with the particular GUI I'm using, but I don't see one, so perhaps I need to create one? I'm a little lost here guys?

Please Log in to join the conversation.

More
1 year 11 months ago #315594 by rodw
A file starting with a period denotes a hidden file.
You can tell thunar browser to show them.
The tilde ~ is shorthand for your home folder,

Please Log in to join the conversation.

More
1 year 11 months ago #315619 by slowpoke
Thanks guys!

I learned something and it works.

Please Log in to join the conversation.

Time to create page: 0.201 seconds
Powered by Kunena Forum