This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How can I know I'm using konsole in a terminal application?

Tags: konsole konsole konsole
(comma "," separated)
pansz
Registered Member
Posts
113
Karma
0
OS
In a terminal application we may need to do some terminal-specific things.

for example, this is a feature which is unique to konsole:

http://bugs.kde.org/show_bug.cgi?id=103399

However, in a console application we got term=xterm, which isn't very helpful since we cannot know what the terminal application is from the word "xterm".

Anyway to know "I'm in a konsole" for a terminal application?
User avatar
Milian Wolff
KDE Developer
Posts
61
Karma
1
OS
Try digging through the DBUS interface of konsole. You might be able to find something suitable there. I suggest using qdbusviewer for the task.


current KDE projects: Quanta, KDevelop, Kate
User avatar
Jekyll
KDE Developer
Posts
34
Karma
0
OS
For KDE4 Konsole, you can check some Konsole specific environment variables, like KONSOLE_DBUS_SERVICE and KONSOLE_DBUS_SESSION


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell