How to get rid of or disable hp-systray

If I do a

ps aux

, I have three instances of the following showing up:

python /usr/bin/hp-systray -x

belonging to the current user. Is there a way to get rid of this? I don’t have any printers, and really don’t need this service. Anything concerning printing services are disabled.

I am using 13.1 with KDE 4.11, kept updated and/or patched daily.

rpm -qf /usr/bin/hp-systray

Will tell you what package it belongs, to, then just zypper rm package

Unless you need it, of course.

On 2014-09-09 16:56, Miuku wrote:
>
> rpm -qf /usr/bin/hp-systray
>
> Will tell you what package it belongs, to, then just zypper rm package

It belongs to “hplip”. It is not needed for printing, or not always.
I have a laptop that starts that applet, I do not want it started
automatically, and I do not want to get rid of hplip, because I may want
to print (the applet is not needed for printing in my setup).


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

It is possible to keep the package and just delete the autostart file if desired: /etc/xdg/autostart/hplip-systray.desktop

On 2014-09-09 23:16, deano ferrari wrote:
>
> It is possible to keep the package and just delete the autostart file if
> desired: /etc/xdg/autostart/hplip-systray.desktop

Ah…!

Thanks.

Another one would be renaming or moving “hp-systray”.

I created “/etc/xdg/dont_autostart/” and moved the file there. That way
I can restore easily. And being a non-standard directory, I hope the
system does not remove it on updates.

Mmm… A user can add an autostart entry, but can he remove an entry
only for his desktop, not systemwide? Like this one, that is defined
systemwide to start.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

I do not have any HP printers, faxes, nor scanners connected to my system. So, I simply removed hplip altogether a long time ago.

My Canon printers and scanners are all working properly, the same as they had been before I removed the package.

… so, I do not see any need for it without the HP devices.

Others that I know about:
Per user ~/.kde4/Autostart, ~/.config/autostart, ~/.local/share/autostart
System wide /etc/xdg/autostart, /usr/share/autostart

On 2014-09-10 02:36, deano ferrari wrote:
>
> robin_listas;2663740 Wrote:
>>
>> Mmm… A user can add an autostart entry, but can he remove an entry
>> only for his desktop, not systemwide? Like this one, that is defined
>> systemwide to start.

> Others tha I know about:
> Per user ~/.kde4/Autostart, ~/.config/autostart,
> ~/.local/share/autostart
> System wide /etc/xdg/autostart, /usr/share/autostart

Yep. I know about them (more or less). I just wonder, for curiosity
sake, if a plain user can disable from starting on his account something
like hp-systray that is defined systemwide. That is, without
administrator rights.

That is, a user can add something to autostart, but not remove, as far
as I know, right?

I’m not sure I explain myself clearly :-? I need sleep.

Mind, this is only curiosity, I do not need it.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

On 2014-09-10 01:16, Fraser Bell wrote:

> … so, I do not see any need for it without the HP devices.

Correct.
It is probably a “recommended” package.

And not all hp printers need it. Mine doesn’t. In fact, in this
computer, if I try to start it manually, it bails out:

warning: No hp: or hpfax: devices found in any installed CUPS queue.
Exiting.

which is not fully true, there is an hp printer in cups…


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

No, he cannot, since it was administrator invoked in the first place.

I’m not sure I explain myself clearly :-? I need sleep.

Yes, we all need rest. Tempting sometimes to try responding to one more post…yawn.

Yes, he can.

Just copy the .desktop file to ~/.config/autostart/, and edit it to include the line “Hidden=true”.
At least I think that should work.

Is it possible to just go in the kde “configure desktop” -> “startup and shutdown” -> “session management”
and then put hp-systray in the “applications to be excluded from session” field ?

No.
It is not started by the session management. This only affects the automatic start of applications that were still running when you logout.
Or rather, the applications listed there will just not be remembered by the session management.

Hplip is started because the package installs a .desktop file to the autostart folder (/etc/xdg/autostart/) to make it start automatically at login.

Of course if you have it running when you log out, it would be restarted even when no autostart entry would be present.
In that case that configuration would help. But you could just as well just quit it before you logout or not start it in the first place… :wink:

Yes, I can confirm that does indeed work. Had never tried it previously.

http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html

FWIW, I have to connect to an Exchange server for work email and calendars, so I have DavMail installed, and it is only started as a user process, (hence I actually removed it from /etc/xdg/autostart, but do have it in ~/.config/autostart instead).

Thanks to all who replied. That did the job, and this thread can be considered completed.

On 2014-09-10 09:26, deano ferrari wrote:
>
> wolfi323;2663795 Wrote:
>> Yes, he can.
>>
>> Just copy the .desktop file to ~/.config/autostart/, and edit it to
>> include the line “Hidden=true”.
>> At least I think that should work.
> Yes, I can confirm that does indeed work. Had never tried it previously.

I confirm it, too. I just tried.

> FWIW, I have to connect to an Exchange server for work email and
> calendars, so I have DavMail installed, and it is only started as a user
> process, (hence I actually removed it from /etc/xdg/autostart, but do
> have it in ~/.config/autostart instead).

Should not matter, it should run as your user always, I think :-?


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

Yes, but I only want it run as my user, and not for any other user :wink:

On 2014-09-27 00:46, deano ferrari wrote:
>
> robin_listas;2666643 Wrote:
>>
>>
>>> FWIW, I have to connect to an Exchange server for work email and
>>> calendars, so I have DavMail installed, and it is only started as a user
>>> process, (hence I actually removed it from /etc/xdg/autostart, but do
>>> have it in ~/.config/autostart instead).
>>
>> Should not matter, it should run as your user always, I think :-?

> Yes, but I only want it run as my user, and not for any other user :wink:

AH! Of course, understood.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)