On 2023-03-05 17:29:04 deloptes via tde-users wrote: > J Leslie Turriff via tde-users wrote: > > Is there a way for one account to fetch information from another > > account's DCOP service? If I open a Konsole session that logs into > > another account's shell, can that shell fetch the SessionName from the > > DCOP of the Konsole account? > > Is TDE running in the target account? Yes. > What is the dcop service you are looking for? I want to fetch the SessionName for the session that's running a Root Shell session. (The session names are not necessarily "Root Shell", "Root Shell No. 2", etc., because I rename them. I want the root shell's .bashrc to be able to tell what session it's running in, but it needs to talk to the dcop server of the account that owns the Konsole instance. > > I tried now connecting to the PC where TDE is running and the first thing I > notice is that the environment is missing, so dcop command is not in the > path. | ~ | $ whereis dcop | dcop: /opt/trinity/bin/dcop | @00:12:01,leslie@pinto rc=0 | ~ | $ paths | /home/leslie/bin | /home/leslie/bin/rexx | /home/leslie/x2/bin | /usr/local/xlinux/xmacros | /home/leslie/bin/NetRexx | /home/leslie/.local/bin | /opt/trinity/bin | /opt/trinity/lib64 | /usr/local/bin | /bin | /usr/bin | /usr/local/sbin | /sbin | /usr/sbin | /usr/local/lib64 | /usr/local/lib | @00:12:06,leslie@pinto rc=0 Are you speaking of an environment variable? If so, which one? | ~ | $ env|grep tde;env|grep trini | WINDOWMANAGER=/opt/trinity/bin/starttde | XDG_SESSION_DESKTOP=tde | XCURSOR_THEME=tdegtk-icon-theme | WINDOWMANAGER=/opt/trinity/bin/starttde | TDEROOTHOME=/root/.trinity | DESKTOP_SESSION=trinity | GTK2_RC_FILES=/home/leslie/.gtkrc-2.0-kde-kde4:/home/leslie/.trinity/share/config/gtkrc-2.0 | TDEHOME=/home/leslie/.trinity | XDG_DATA_DIRS=/opt/trinity/share:/usr/local/share:/usr/share | TDEDIR=/opt/trinity | MANPATH=/opt/trinity/share/man:/usr/local/man:/usr/local/share/man:/usr/share/man | GTK_RC_FILES=/etc/gtk/gtkrc:/home/leslie/.gtkrc:/home/leslie/.trinity/share/config/gtkrc | XDG_CONFIG_DIRS=/etc/trinity/xdg:/usr/local/etc/xdg:/etc/xdg | PATH=/home/leslie/bin:/home/leslie/bin/rexx:/home/leslie/x2/bin:/usr/local/xlinux/xmacros:/home/leslie/bin/NetRexx:/home/leslie/.local/bin:/opt/trinity/bin:/opt/trinity/lib64:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/lib64:/usr/local/lib | @00:20:32,leslie@pinto rc=0 The root sessions running in the user account's Konsole sessions only show trinity in the PATHS variable; none of the other above variables are set, because root is not logged in as a TDE graphical user. Also, | ~ | $ px dcopserver | leslie 6647 1 0 Mar05 ? 00:00:00 dcopserver [tdeinit] --nosid --suicide | @00:26:30,leslie@pinto rc=0 and | ~ | ● px dcopserver | root 20771 1 0 Mar05 ? 00:00:00 dcopserver | @00:26:39,root@pinto rc=0 I suppose that the root sessions need to talk to dcopserver with PID 6647, not 20771, since 6647 is associated with the account running Konsole. Leslie -- Platform: GNU/Linux Hardware: x86_64 Distribution: openSUSE Leap 15.4 Desktop Environment: Trinity Qt: 3.5.0 TDE: R14.0.13 tde-config: 1.0 ____________________________________________________ tde-users mailing list -- users@xxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxx Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@xxxxxxxxxxxxxxxxxx