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

More
28 Nov 2024 20:11 #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 or Create an account to join the conversation.

More
29 Nov 2024 04:54 #315512 by cakeslob
The following user(s) said Thank You: Aciera, slowpoke

Please Log in or Create an account to join the conversation.

More
29 Nov 2024 14:38 #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 or Create an account to join the conversation.

More
29 Nov 2024 14:47 #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
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

  • rodw
  • rodw's Avatar
  • Away
  • Platinum Member
  • Platinum Member
More
29 Nov 2024 18:47 #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 or Create an account to join the conversation.

More
29 Nov 2024 22:29 #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
 

~/.axisrc   ???

where is .axisrc?  or do I need to create it?  and does it need a file name before the extension?
What does  "
~/"
mean?
I'm guessing here.... there might be a file ending with
".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 or Create an account to join the conversation.

  • rodw
  • rodw's Avatar
  • Away
  • Platinum Member
  • Platinum Member
More
29 Nov 2024 23:18 #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,
The following user(s) said Thank You: slowpoke

Please Log in or Create an account to join the conversation.

More
30 Nov 2024 08:33 #315619 by slowpoke
Thanks guys!

I learned something and it works.
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

Time to create page: 0.091 seconds
Powered by Kunena Forum