You are not logged in.
System: xfce4, x86_64.
Issue: trying to figure out how to protect a window from being closed in X environment until shutdown or manually unprotected. Ideally, a way to right click on the window in question and have an option to 'protect' which removes that 'x' close window icon and/or keeps it from being closed until unprotected.
Example: Using ssh via terminal to transfer a LOT of important files using -r on important directories of the remote filesystem. You have it on another workspace, along with a second terminal that you're using to browse that filesystem to find more files you need and move ones you already have away from those main directories so you don't waste time re-downloading them.
I'm looking for this as a safeguard against worst-case scenarios, just in case I mix up the terminals somehow and try to close the important one, go temporarily insane and close everything or someone else comes by when I'm not here and I forgot to use slimlock. No idea where to begin, I'm fairly certain there's no option in xfce and various searches for it gives me a mixture of nothing and Windows issues. The current example applies, but there are other situations where I would like to be able to do this.
Last edited by betacyanin (2012-07-01 23:13:37)
Offline
you could run it in a gnu screen session. If you close the window by accident it will simply detach the screen session and keep running.
Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Fractal Design Define 7 XL, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703
/ is the root of all problems.
Offline
I thought of that, but I think that requires you to start it using screen, and I'd rather have a quicker, more direct method that doesn't require a terminal.
This has me tempted to try to figure out scripting something just to have to option to remove -> replace the close window icon, but I have zero scripting experience and know I'd be in over my head there (right click window - protect --> right click window - unprotect; famous last words: "how hard can it be?"). Not asking someone to do it for me, but if anyone knows a good starting point to look at and some key terms to research that would be helpful.
Offline
You can modify the theme though I've never really used XFWM, so I don't know if this can be done on a per-window basis.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I thought of that, but I think that requires you to start it using screen, and I'd rather have a quicker, more direct method that doesn't require a terminal.
If it doesn't require a terminal, it won't require a window either - so there will be nothing to close.
Offline
Make a shortcut on your desktop:
screen -d -m yourcommandWhich will launch it straight into a detached screen session. If you need to check on it, open a terminal and type screen -r. To detach again either close the terminal or press ctrl-a-d.
Job done.
Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Fractal Design Define 7 XL, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703
/ is the root of all problems.
Offline
I thought maybe you might do something to that effect using devilspie, but it seems the only thing it would allow is to remove decorations. You can't accidentally click on the close button then, but you can still close the window... I guess setting it to skip tasklist could also help in that regard, but I still wouldn't call it a protection, as the window could still be closed. Plus it wouldn't be on your tasklist anymore. There might be alternatives that offer such a "protection", I don't know.
As mentioned, screen (or just dtach) might be a better solution...
Offline