Score:0

Is There Any Way to Get the Current URI of Nautilus? ( And Check if it is Minimized)

eg flag

Context : I want to make a small python script that manages nautilus.

Is there any way to get the current directory opened in Nautilus ( Files ) ? Also, I have heard about being able to detect if all windows are minimized here, but is there a way to check for a specific app-id or app name only?

guiverc avatar
cn flag
The use of `nautilus $PWD` will open `nautilus` using my present working directory; you've not provided any OS & release, so I tested it on my own & it works.
Omar Shahbaz avatar
eg flag
No no, I don't want to open nautilus in the current working directory, I just want to see what folder you are in ( if nautilus is open ). For example, if nautilus is open in ~/Downloads , then it prints that out to the stdout
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.