kmailservice -V (return code: 255)
kmailservice(3931)/kdeui (kdelibs): Session bus not found
To circumvent this problem try the following command (with Linux and bash)
export $(dbus-launch)
KCrash: Application 'kmailservice' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
KCrash: Connect sock_file=/home/ubuntu/.kde/socket-ubuntu-xenial/kdeinit4__0
Warning: connect() failed: : No such file or directory
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi directly
drkonqi: cannot connect to X server
Unable to start Dr. Konqi
Not forwarding the crash to Apport.
kmailservice --help (return code: 0)
Usage: kmailservice [Qt-options] [KDE-options] url
Mail service
Generic options:
--help Show help about options
--help-qt Show Qt specific options
--help-kde Show KDE specific options
--help-all Show all options
--author Show author information
-v, --version Show version information
--license Show license information
-- End of options
Arguments:
url