Hello!
I’m trying to get the current working directory from the active session of a Konsole window, within a Kwin script. I have the Konsole PID and can get the ID of the active session. However I can’t seem to find a suitable Dbus method for getting the working directory of that session.
For example, with a pid of 12345 and session ID of 1, I check the methods with
qdbus6 org.kde.konsole-12345 /Sessions/1
However I can’t see anything that gives that sort of information about the shell. Is this possible, or should it be done with something other than Dbus?
Apologies if I’ve missed something obvious, this is my first foray into kwin scripting.