Score:0

xfce restart application in place

cn flag

I was wondering if there was a way I could create a shortcut that would restart the currently focused application in place. By this I mean that the application would close and then relaunch with the same command line flags etc. in the same screen location, so that applications that rely on startup resources could be changed and quickly restarted.

vanadium avatar
cn flag
That would need to be scripted. Obtain the pid of the current window (`wmctrl`), then obtain the command line of the current pid (`ps ax`) then kill that process and restart it.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.