Results 1 to 3 of 3

Thread: KDE 5.3.94, I am trying to figure out what launches ssh-agent or dbus-agent on login?

  1. #1

    Default KDE 5.3.94, I am trying to figure out what launches ssh-agent or dbus-agent on login?

    I had initially crafted a script that would spawn a ssh-agent on login and ask for my passphrase till I noticed they are two ssh-agent processes running. One spawned by the script that I wrote and another spawned by dbus-launch. See below:

    Code:
    /usr/bin/dbus-launch  --sh-syntax --exit-with-session  /usr/bin/ssh-agent /usr/bin/gpg-agent  --sh --daemon --keep-display  --write-env-file  /home/lhorace/.gnupg/agent.info-linux-0egw:0  /etc/X11/xinit/xinitrc
    So for, running find and grep, "find / -mount -type f -exec grep -Iq 'dbus-launch' {} \; -and -print". Only spewed out the following files:

    Code:
    /usr/bin/startkde
    /usr/bin/startplasmacompositor
    /usr/share/doc/packages/dbus-1/NEWS
    /usr/share/doc/packages/dbus-1/README
    /usr/share/doc/packages/python3-gobject/ChangeLog
    /usr/share/doc/packages/python3-gobject/NEWS
    /usr/share/doc/packages/libglib-2_0-0/NEWS
    /usr/share/doc/packages/python-gobject2/ChangeLog
    /usr/share/doc/packages/python-gobject2/NEWS
    /usr/share/doc/packages/python-gobject/ChangeLog
    /usr/share/doc/packages/python-gobject/NEWS
    /usr/share/doc/packages/glib2-devel/ChangeLog
    /usr/share/doc/kde/HTML/en/ksnapshot/index.docbook
    /usr/share/applications/kde4/dolphinsu.desktop
    /var/lib/sddm/.dbus/session-bus/4912376526558b2ff615bf4255fb642a-0
    /etc/X11/xdm/sys.xsession
    /root/.dbus/session-bus/3cb9db72b25c8550166ed5c856004854-0
    /root/.dbus/session-bus/4912376526558b2ff615bf4255fb642a-0
    /usr/bin/startkde has a reference on line 296, see below:


    Code:
    # Make sure that D-Bus is running
    # D-Bus autolaunch is broken
    if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
        eval `dbus-launch --sh-syntax --exit-with-session`
    fi
    But that doesn't seem right is it ? Is dbus-launch on first init, polls some directory ?
    Does perhaps anyone else know another location?

    Regards

  2. #2

    Default Re: KDE 5.3.94, I am trying to figure out what launches ssh-agent or dbus-agent on login?

    The agents are run by /etc/X11/xdm/sys.xsession (at least on OpenSuSE 13.2).

    And BTW grep has "-r" these days, no need for a very convoluted `find` command

  3. #3
    Join Date
    Sep 2010
    Location
    Poland
    Posts
    1,925

    Default Re: KDE 5.3.94, I am trying to figure out what launches ssh-agent or dbus-agent on login?

    Interesting That's good to know. Thank you for sharing.
    Best regards,
    Greg

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •