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

How to auto-start program and include in system tray

Tags: None
(comma "," separated)
User avatar
xmanmonk
Registered Member
Posts
141
Karma
0
OS
Running Mint 12 KDE. I have Evolution installed. I would like it to autostart with the icon in the system tray as well. From the KDE Menu, there is a way to have it in the system tray (a little check box). I'm wondering if there is a way to do this from startup applications, or a command-line option to tell it to run in the system tray?


- X-Man
User avatar
google01103
Manager
Posts
6668
Karma
25
run the command prefixed by ksystraycmd ie "ksystraycmd evolution"

also look at kdocker and alltray


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
xmanmonk
Registered Member
Posts
141
Karma
0
OS
Thanks, google01103! That's exactly what I was looking for!


- X-Man
User avatar
xmanmonk
Registered Member
Posts
141
Karma
0
OS
As helpful as this is, and as correct as it seemed (and probably is), it's still not working. When I start the application from the system menu, it works fine. When I include the kdesystraycmd in the startup area for the program to auto-launch, it launches, but not in the system tray.


- X-Man
User avatar
google01103
Manager
Posts
6668
Karma
25
it ksystemtraycmd not kdesystraycmd

does it work if you run ksystemtraycmd evolution in konsole?


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
xmanmonk
Registered Member
Posts
141
Karma
0
OS
Oops :) Will try that when I'm done Skyping with my pal. Thanks.


- X-Man
User avatar
xmanmonk
Registered Member
Posts
141
Karma
0
OS
That didn't work, even from a Konsole window. ksystraycmd works in the Konsole window, but still not in the startup section.


- X-Man
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Have you checked the output of "evolution --help" to see if it offers any deliberate options to simply hide in the system tray, or not show it's main window?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
xmanmonk
Registered Member
Posts
141
Karma
0
OS
OK, I think I'm on to something here. When I look at the startup properties for the entry, I select Properties, then Preview, and it shows: Exec=ksystraycmd ksystraycmd evolution. That looks like a problem to me. But... the exec line in the Application tab only shows one ksystraycmd. I'm assuming this preview relates to a startup file somewhere. Anyone know where?


- X-Man
User avatar
google01103
Manager
Posts
6668
Karma
25
look at the application tab -> command


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
xmanmonk
Registered Member
Posts
141
Karma
0
OS
OK, the file in ~/.config/autostart (there's one for Evolution.desktop) looks like this:

[Desktop Entry]
Comment[en_US]=
Comment=
Exec=ksystraycmd evolution
GenericName[en_US]=
GenericName=
Hidden=false
Icon=system-run
MimeType=
Name[en_US]=Evolution
Name=Evolution
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=

When I execute "ksystraycmd evolution" at the command line, it works fine. Is one of these other settings wrong?


- X-Man
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Try setting "Terminal=true".


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
xmanmonk
Registered Member
Posts
141
Karma
0
OS
<spock> fascinating </spock>

OK, with the terminal setting true, I got a terminal window (of course), and it launched, and I got an extra icon in the tray, but oddly the wrong icon. I got two icons for my alarm application (and both seeming to be attached to the alarm app). Weird.


- X-Man
User avatar
google01103
Manager
Posts
6668
Karma
25
clicking the 2 icons open Kalarm?

down load and install kdocker and see if that works as an alternative to ksystraycmd


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
xmanmonk
Registered Member
Posts
141
Karma
0
OS
Thanks. I've tried the kdocker, and I didn't really like it. I just removed and re-added Evolution, and it did the same thing, only this time, it opened an icon of another app. So, it seems, it's putting something in the system tray, just the WRONG thing. Very weird. Well, I don't think this is going to work as advertised. Perhaps I can do it in a script?


- X-Man


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], q.ignora, watchstar