Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get path of files/locations from app windows #469

Open
Jopp-gh opened this issue Oct 1, 2024 · 4 comments
Open

Get path of files/locations from app windows #469

Jopp-gh opened this issue Oct 1, 2024 · 4 comments

Comments

@Jopp-gh
Copy link

Jopp-gh commented Oct 1, 2024

I checked:

  • xdotool's man pages
  • developer q&a websites (stack overflow, askubuntu, super user, baelding, etc..)

I'm still at the starting point and cannot figure out how to extract file or folder paths from Nemo/Nautilus windows. (Ubuntu flavors, file navigation)

Parsing window names isn't the max and pretty fragile, even if you get a lot of info. Paths are much more robust and unique.

Maybe I did oversee something but I guess the feature I'm looking for doesn't exist in xdotool.
If so, would it be possible to implement this feature ?

@FascinatedBox
Copy link

I'm confused as to what information you're trying to get. Can you give an example of what you're trying to get? Like maybe a screenshot of a folder, the name of it, and what you'd like to see xdotool extract for you.

@Jopp-gh
Copy link
Author

Jopp-gh commented Oct 9, 2024

usually we open applications to display some sort of content, like when you open a simple txt file you'll see the file content of that txt file, rendered in a window.
Xdotool is able to extract "only" window titles, but not file paths.

I would need a option to extract file paths from open windows, as paths are more robust than window titles.

@FascinatedBox
Copy link

If I'm understanding you right, you want to know, like, what files that Nautilus is showing, or what file is open in a text editor? If that's the case, xdotool isn't built for that. You might have some luck with xprop on a case-by-case basis, if I'm understanding you right. If you can't see the info in xprop, possibly use a dbus explorer to see if there's an interface that shows what you want.

@Jopp-gh
Copy link
Author

Jopp-gh commented Oct 20, 2024

Thanks for your infos. Alright, so we can close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants