For a long time I've wondered if there was a way in TDE to start a console window in a _specific_ desktop. My Black Belt In Procrastination has kept my from really pursuing the issue. :-)
So, today I thought to try a Google AI search for the issue. I had low expectations, because Trinity is (sadly) not so well known or employed in the wild.
So, with the 'prompt' "trinity TDE start console on specific desktop" I was gifted with this"
"To start the Trinity Desktop Environment (TDE) console on a specific desktop, you can use the command "kstart --desktop [desktop number] [application]" in a terminal window, where "[desktop number]" is the desired desktop number and "[application]" is the application you want to launch on that desktop; for example, "kstart --desktop 2 xterm" would open a terminal window on the second desktop. ....." There was additional text given besides the above.
Whoopie! I had never learned of/about `kstart` before. But, also Whoopie! Because AI can probably help with lots of 'ordinary' Trinity issues that someone (newcomers) come up with.
Jonesy
To my knowledge Gemini's AI-assist search gets it's information reading pages back to you almost verbatim, there's little links it provides to each source too. Of course sometimes it gets multiple topics mixed together. Since it's parsing search queries and not full sentences it can also easily get confused on what you're asking. So it's hit or miss sometimes.
-- bonkmaykr Software Developer, Canithesis Interactive
Sent from Proton Mail Android
-------- Original Message -------- On 2/10/25 12:06 PM, Marvin Jones via tde-users users@trinitydesktop.org wrote:
For a long time I've wondered if there was a way in TDE to start a console window in a _specific_ desktop. My Black Belt In Procrastination has kept my from really pursuing the issue. :-)
So, today I thought to try a Google AI search for the issue. I had low expectations, because Trinity is (sadly) not so well known or employed in the wild.
So, with the 'prompt' "trinity TDE start console on specific desktop" I was gifted with this"
"To start the Trinity Desktop Environment (TDE) console on a specific desktop, you can use the command "kstart --desktop [desktop number] [application]" in a terminal window, where "[desktop number]" is the desired desktop number and "[application]" is the application you want to launch on that desktop; for example, "kstart --desktop 2 xterm" would open a terminal window on the second desktop. ....." There was additional text given besides the above.
Whoopie! I had never learned of/about `kstart` before. But, also Whoopie! Because AI can probably help with lots of 'ordinary' Trinity issues that someone (newcomers) come up with.
Jonesy ____________________________________________________ tde-users mailing list -- users@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydeskto...
Marvin Jones via tde-users wrote:
So, today I thought to try a Google AI search for the issue. I had low expectations, because Trinity is (sadly) not so well known or employed in the wild.
There is no real AI. It is a commercial trick for statistics on steroids. It also lies a lot (makes up things).
The great benefit is in saving time to generate new stuff (but in terms of programming it mostly does not get it right yet). There are few application areas (for example CAD or image and text generation) especially when trained in closed domain, where it is really useful. For the rest it may be right but it may be also wrong. A sober approach is more beneficial.
On 2025-02-10 16:35:26 deloptes via tde-users wrote:
Marvin Jones via tde-users wrote:
So, today I thought to try a Google AI search for the issue. I had low expectations, because Trinity is (sadly) not so well known or employed in the wild.
There is no real AI. It is a commercial trick for statistics on steroids. It also lies a lot (makes up things).
The great benefit is in saving time to generate new stuff (but in terms of programming it mostly does not get it right yet). There are few application areas (for example CAD or image and text generation) especially when trained in closed domain, where it is really useful. For the rest it may be right but it may be also wrong. A sober approach is more beneficial.
Quite right. Train medical AIs on research papers and medical texts; train legal AIs on lawbooks and court records; etc. Training AIs on the noise from social media is at best a waste of time, and dangerous in some situations (e.g. law enforcement).
Leslie -- Platform: Linux Distribution: openSUSE Leap 15.6 - x86_64 Desktop Environment: Trinity Qt: 3.5.0 TDE: R14.1.3 tde-config: 1.0
On 2/10/25 12:06 PM, Marvin Jones via tde-users wrote:
Whoopie! I had never learned of/about `kstart` before. But, also Whoopie! Because AI can probably help with lots of 'ordinary' Trinity issues that someone (newcomers) come up with.
Combining kstart and dcop you can do amazing things with konsole sessions. I've got a short shell script that calls kstart to start a konsole session and then starts 10 more sessions in tabs, renaming each tab and for remote connection tabs, ssh'ing into the remote host - all from an icon in Quicklancher in the task bar.
Well worth looking into dcop (yes old, yes it TDE only, ...) but it works like magic in TDE/KDE3.
To get started, just:
$ dcop konsole* konsole-2075
It's a chain, so you can see the capabilities below each entry simply by typing
$ dcop konsole-2075 (and next) (and next), etc...
For example:
$ dcop konsole-2075 qt KBookmarkManager-/home/david/.kde/share/apps/konsole/bookmarks.xml KBookmarkNotifier MainApplication-Interface konsole (default) konsole-mainwindow#1 ksycoca session-1 session-10 session-11 session-12 session-2 session-3 session-4 session-5 session-6 session-7 session-8 session-9
What can you do with 'qt'?
$ dcop konsole-2075 qt QCStringList functions() QCStringList interfaces() QCStringList objects() QCStringList find(QCString)
The "QCStringList" tells you what type value will be returned. The "function()" (obvious) "interfaces()" and "object()" will all list what is available for that type that you can use -- generically with dcop.
What can you do with "dcop konsole-2075 konsole"? or the "dcop konsole-2075 konsole-mainwindow#1"? have a look. For running open konsole sessions, if you want to to it to a session, you can, e.g.
$ dcop konsole-2075 session-1 QCStringList interfaces() QCStringList functions() void feedSession(QString text) void sendSession(QString text) bool closeSession() bool sendSignal(int signal) void clearHistory() void renameSession(QString name) QString sessionName() int sessionPID() QString schema() void setSchema(QString schema) QString encoding() void setEncoding(QString encoding) QString keytab() void setKeytab(QString keyboard) QSize size() void setSize(QSize size) QString font() void setFont(QString font)
You can literally control every aspect of konsole (or any TDE app) with dcop. Very handy. Really easy too. If I want to know the size?
$ dcop konsole-2075 session-1 size 115x58
Or rename a session, use renameSession(QString name), so set the size of the window, use setSize(QSize size), etc...
The only thing I haven't figured out a way to set is the tab-color, but that's for another day.
On 2025-02-10 20:36:00 David C. Rankin via tde-users wrote:
On 2/10/25 12:06 PM, Marvin Jones via tde-users wrote:
Whoopie! I had never learned of/about `kstart` before. But, also Whoopie! Because AI can probably help with lots of 'ordinary' Trinity issues that someone (newcomers) come up with.
Combining kstart and dcop you can do amazing things with konsole sessions. I've got a short shell script that calls kstart to start a konsole session and then starts 10 more sessions in tabs, renaming each tab and for remote connection tabs, ssh'ing into the remote host - all from an icon in Quicklancher in the task bar.
Well worth looking into dcop (yes old, yes it TDE only, ...) but it works like magic in TDE/KDE3.
To get started, just:
$ dcop konsole* konsole-2075
It's a chain, so you can see the capabilities below each entry simply by typing
$ dcop konsole-2075 (and next) (and next), etc...
For example:
$ dcop konsole-2075 qt KBookmarkManager-/home/david/.kde/share/apps/konsole/bookmarks.xml KBookmarkNotifier MainApplication-Interface konsole (default) konsole-mainwindow#1 ksycoca session-1 session-10 session-11 session-12 session-2 session-3 session-4 session-5 session-6 session-7 session-8 session-9
What can you do with 'qt'?
$ dcop konsole-2075 qt QCStringList functions() QCStringList interfaces() QCStringList objects() QCStringList find(QCString)
The "QCStringList" tells you what type value will be returned. The "function()" (obvious) "interfaces()" and "object()" will all list what is available for that type that you can use -- generically with dcop.
What can you do with "dcop konsole-2075 konsole"? or the "dcop konsole-2075 konsole-mainwindow#1"? have a look. For running open konsole sessions, if you want to to it to a session, you can, e.g.
$ dcop konsole-2075 session-1 QCStringList interfaces() QCStringList functions() void feedSession(QString text) void sendSession(QString text) bool closeSession() bool sendSignal(int signal) void clearHistory() void renameSession(QString name) QString sessionName() int sessionPID() QString schema() void setSchema(QString schema) QString encoding() void setEncoding(QString encoding) QString keytab() void setKeytab(QString keyboard) QSize size() void setSize(QSize size) QString font() void setFont(QString font)
You can literally control every aspect of konsole (or any TDE app) with dcop. Very handy. Really easy too. If I want to know the size?
$ dcop konsole-2075 session-1 size 115x58
Or rename a session, use renameSession(QString name), so set the size of the window, use setSize(QSize size), etc...
The only thing I haven't figured out a way to set is the tab-color, but that's for another day.
I find this discussion about Konsole interesting. When I log out of my desktop session and back in, each of my Konsole windows, and all of their tabs, are restored just as they were when I logged out. Perhaps my use of the Terminal Sessions applet provides this feature? I also use Konsole's bookmark feature to provide convenient access to selected locations in the filesystem tree.
Leslie -- Platform: Linux Distribution: openSUSE Leap 15.6 - x86_64 Desktop Environment: Trinity Qt: 3.5.0 TDE: R14.1.3 tde-config: 1.0
On 2/10/25 10:25 PM, J Leslie Turriff via tde-users wrote:
I find this discussion about Konsole interesting. When I log out of my desktop session and back in, each of my Konsole windows, and all of their tabs, are restored just as they were when I logged out. Perhaps my use of the Terminal Sessions applet provides this feature? I also use Konsole's bookmark feature to provide convenient access to selected locations in the filesystem tree.
I'd never heard of the terminal session applet, but that sure sounds nice. I guess for completeness of the example, I'll go ahead and attach the script I use to start the konsole session. I just use kmenu to add an entry for the script and then just rt-click and add the icon to the Quicklaunch applet in the toolbar.
There are even a few comments in the script. Must have known I'd forget and not want to go through the learning process all over again years later...
I'm going to follow up on the Terminal Session applet. 20+ years and I'm still finding things I haven't used :)
On 2025-02-10 23:00:06 David C. Rankin via tde-users wrote:
On 2/10/25 10:25 PM, J Leslie Turriff via tde-users wrote:
I find this discussion about Konsole interesting. When I log out of my desktop session and back in, each of my Konsole windows, and all of their tabs, are restored just as they were when I logged out. Perhaps my use of the Terminal Sessions applet provides this feature? I also use Konsole's bookmark feature to provide convenient access to selected locations in the filesystem tree.
I'd never heard of the terminal session applet, but that sure sounds nice. I guess for completeness of the example, I'll go ahead and attach the script I use to start the konsole session. I just use kmenu to add an entry for the script and then just rt-click and add the icon to the Quicklaunch applet in the toolbar.
There are even a few comments in the script. Must have known I'd forget and not want to go through the learning process all over again years later...
I'm going to follow up on the Terminal Session applet. 20+ years and I'm still finding things I haven't used :)
Right-click on the panel, select Add Applet to Panel..., scroll down to Terminal Sessions, ...
Leslie -- Platform: Linux Distribution: openSUSE Leap 15.6 - x86_64 Desktop Environment: Trinity Qt: 3.5.0 TDE: R14.1.3 tde-config: 1.0
On 2/11/25 2:38 AM, J Leslie Turriff via tde-users wrote:
Right-click on the panel, select Add Applet to Panel..., scroll down to Terminal Sessions, ...
That would have been much easier than learning dcop ;-/
On 2025-02-11 18:14:59 David C. Rankin via tde-users wrote:
On 2/11/25 2:38 AM, J Leslie Turriff via tde-users wrote:
Right-click on the panel, select Add Applet to Panel..., scroll down to Terminal Sessions, ...
That would have been much easier than learning dcop ;-/
DCOP would be a wonderful service if only it had some documentation.
Leslie -- Platform: Linux Distribution: openSUSE Leap 15.6 - x86_64 Desktop Environment: Trinity Qt: 3.5.0 TDE: R14.1.3 tde-config: 1.0