albertlauncher / albert

A fast and flexible keyboard launcher
https://albertlauncher.github.io
Other
7.2k stars 304 forks source link

4 albert processes / sessions #414

Closed janeklb closed 7 years ago

janeklb commented 7 years ago
Environent
Steps to reproduce

Install Albert, restart os

Expected behaviour

To find a single Albert process

Actual behaviour

Seeing 4 Albert processes:

janek@xxx:~$ ps -ef | grep albert
janek     1954  1803  0 14:53 ?        00:00:02 albert -session 2a4355748-69d4-4899-8f1f-f0c2e8ff12a1_1489745500_253867
janek     1960  1803  0 14:53 ?        00:00:01 albert -session 28bcd073a-0dc0-4e88-a3cf-239acbfc4883_1489745500_253108
janek     1961  1803  0 14:53 ?        00:00:02 albert -session 2aa8102f1-cf96-43c8-86f6-70b26823074b_1489745500_253297
janek     1962  1803  0 14:53 ?        00:00:02 albert -session 28b89e5e5-7b1a-4b90-8361-36b214fd89c9_1489745500_252527

I'm able to kill 3/4 of them and albert continues to function (eg. I can bring it up via the shortcut key etc.), so I'm assuming that having 4 albert processes is not intentional.. however, if it is, please ignore!

ManuelSchneid3r commented 7 years ago

What is this session parameter? Mabe related: #411

PaulBGD commented 7 years ago

Lucky! I have 9 using a lot of CPU:

paul      3130  3071 54 22:58 ?        00:01:08 albert -session 2d2e8341d-76f6-4e8f-b9cb-9143e938b7fe_1490049553_895568
paul      3131  3071 21 22:58 ?        00:00:26 albert -session 2833328ec-3103-4a03-959b-f8a254fa107c_1490049553_895501
paul      3132  3071 59 22:58 ?        00:01:14 albert -session 2d04cdedb-6a49-425d-bf3d-caaa366e2ed0_1490049553_895401
paul      3133  3071 57 22:58 ?        00:01:12 albert -session 2c9483c00-9c2d-4141-825d-3f9f3cd72fa7_1490049553_895364
paul      3134  3071 59 22:58 ?        00:01:14 albert -session 212396a34-379e-4076-a99d-9d7be6146506_1490049553_896973
paul      3135  3071 58 22:58 ?        00:01:14 albert -session 2918f86a8-ade2-4eec-b164-99dec99698cd_1490049553_895271
paul      3136  3071 55 22:58 ?        00:01:09 albert -session 29829b8a6-7e0f-4cea-97b7-12018a00d6c9_1490049553_895243
paul      3137  3071 58 22:58 ?        00:01:13 albert -session 20b439f84-fb01-4b45-802d-de55cf15171e_1490049553_897229
paul      3184  3071 54 22:58 ?        00:01:07 albert

Version v0.10.0, also through the ppa. Xfce on Ubuntu 16.10.

ManuelSchneid3r commented 7 years ago

@PaulBGD Do you use albert show?

ManuelSchneid3r commented 7 years ago

@janeklb I assume you have albert in your autostart, dont you?

janeklb commented 7 years ago

Not in ~/.config/autostart/ -- is there another place it could be?

ManuelSchneid3r commented 7 years ago

Not in?

Install Albert, restart os

How is albert started?

janeklb commented 7 years ago

That's a great question.. I don't actually know. It doesn't appear in XFCE's "Session and Startup" settings dialog: image

ManuelSchneid3r commented 7 years ago

Well albert does not launch itself. https://albertlauncher.github.io/docs/faq/#how-can-i-autostart-albert

janeklb commented 7 years ago

In that case it could be an xfce issue (or misconfiguration). Albert's parent pid belongs to xfce4-session, so it seem like xfce is doing it automatically somehow.. I can't figure out how though.

janeklb commented 7 years ago

@PaulBGD are you on xfce as well?

janeklb commented 7 years ago

False alarm -- i can confirm that this was due to an xfce-session misconfiguration.

In order to prevent these albert processes from starting up you must go to the "Session and Startup" config dialog, click on the "Session" tab, kill any running albert processes and click "Clear Saved Sessions" and/or "Save Session" (i'm not sure which did the trick - i did both in order to get this result).

image

ManuelSchneid3r commented 7 years ago

@dajare @PaulBGD same for you?

PaulBGD commented 7 years ago

@ManuelSchneid3r Same for me as well, good find. Not sure why it only started happening with latest version though.

PaulBGD commented 7 years ago

So after having this issue again, it seems that xfce is restarting albert since it was opened the last time my computer was booted up, but it also starts albert since it's in the autostart. For example I just had 23 instances of albert, I'm assuming since I've rebooted my computer 24 times since I fixed this last.

dajare commented 7 years ago

@ManuelSchneid3r @PaulBGD - Startup is behaving well for me. Only one instance running, and it appears in my Session and Startup > Application Autostart list in the Xfce preferences dialog. Albert shows up in that dialog the same was as it does in janeklb's screenshot posted 22 March.

ManuelSchneid3r commented 7 years ago

@PaulBGD version?

PaulBGD commented 7 years ago

Albert launcher v0.11.1. For some reason xfce's session/startup keeps adding new albert instances to restart on bootup every time I shut down my computer.

ManuelSchneid3r commented 7 years ago

@PaulBGD How do you determine that there are several processs?

PaulBGD commented 7 years ago

This Image

ManuelSchneid3r commented 7 years ago

@PaulBGD have you resd this thread? Especially janeklbs answer?

PaulBGD commented 7 years ago

Yes, his answer works until you reboot.

ManuelSchneid3r commented 7 years ago

Session saving and therefore his answer is all about reboot.