https://bugs.kde.org/show_bug.cgi?id=426595
Bug ID: 426595 Summary: KATE_PID environment variable not defined Product: kate Version: unspecified Platform: Other OS: Other Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: kwrite-bugs-n...@kde.org Reporter: markjball...@googlemail.com Target Milestone: --- SUMMARY STEPS TO REPRODUCE 1. open Kate instance 2. type 'echo $KATE_PID in terminal window 3. OBSERVED RESULT nothing EXPECTED RESULT pid of current active Kate instance SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: Linux (x86_64) release 5.4.0-47-generic Ubuntu 18.04.5 LTS (Xubuntu) KDE Plasma Version: 5.44.0-0ubuntu3 amd64 KDE Frameworks Version: 5.44.0 Qt Version: Qt 5.9.5 (built against 5.9.5) ADDITIONAL INFORMATION Kate version: 17.12.3 According to apt: kate/bionic,now 4:17.12.3-0ubuntu1 amd64 [installed] kate5-data/bionic,bionic,now 4:17.12.3-0ubuntu1 all [installed,automatic] ktexteditor-katepart/bionic,now 5.44.0-0ubuntu2 amd64 [installed,automatic] libkate1/bionic,now 0.4.1-7build1 amd64 [installed,automatic] Also fails when seeking envar from same terminal window: $ kate --new & $ echo $KATE_PID Though the command does return the pid for the launched session, I have just seen. Expectation created by Kate documentation: https://docs.kde.org/stable5/en/applications/kate/fundamentals-using-sessions.html $KATE_PID would be most convenient and would save time, if for no other reason than not following the docs up blind alleys, with all due respect for a great editor, for the benefits of which I am humbly grateful. Worth considering also, the likelihood of multiple Kate instances in multiple workspaces, which is quite normal. If active session is in one workspace, and terminal or script running in another workspace wants active kate session, will it get last active session? -- You are receiving this mail because: You are watching all bug changes.