Bug 461758 - Skype or a script sometimes fails to autostart
Summary: Skype or a script sometimes fails to autostart
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Startup process (show other bugs)
Version: 5.26.3
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-13 08:07 UTC by Philippe ROUBACH
Modified: 2023-12-08 20:15 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
desktop file for Skype's autostart entry (199 bytes, application/x-desktop)
2022-11-15 18:08 UTC, Philippe ROUBACH
Details
packges updated at 2022/11/15 1 (196.69 KB, image/png)
2022-11-16 05:59 UTC, Philippe ROUBACH
Details
packges updated at 2022/11/15 2 (183.87 KB, image/png)
2022-11-16 05:59 UTC, Philippe ROUBACH
Details
packges updated at 2022/11/15 3 (202.55 KB, image/png)
2022-11-16 06:00 UTC, Philippe ROUBACH
Details
packges updated at 2022/11/15 4 (216.58 KB, image/png)
2022-11-16 06:00 UTC, Philippe ROUBACH
Details
packges updated at 2022/11/15 5 (211.10 KB, image/png)
2022-11-16 06:00 UTC, Philippe ROUBACH
Details
packges updated at 2022/11/15 6 (197.82 KB, image/png)
2022-11-16 06:01 UTC, Philippe ROUBACH
Details
packages updated at 202-11-16 1 (194.70 KB, image/png)
2022-11-17 10:10 UTC, Philippe ROUBACH
Details
packages updated at 202-11-16 2 (200.20 KB, image/png)
2022-11-17 10:11 UTC, Philippe ROUBACH
Details
packages updated at 202-11-16 3 (212.05 KB, image/png)
2022-11-17 10:11 UTC, Philippe ROUBACH
Details
packages updated at 202-11-16 4 (200.26 KB, image/png)
2022-11-17 10:12 UTC, Philippe ROUBACH
Details
packages updated at 202-11-16 5 (205.27 KB, image/png)
2022-11-17 10:12 UTC, Philippe ROUBACH
Details
packages updated at 202-11-16 6 (200.62 KB, image/png)
2022-11-17 10:12 UTC, Philippe ROUBACH
Details
packages updated at 202-11-16 7 (209.39 KB, image/png)
2022-11-17 10:13 UTC, Philippe ROUBACH
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe ROUBACH 2022-11-13 08:07:50 UTC
SUMMARY

At login skype does not start

STEPS TO REPRODUCE
1. ask for Skype to autostart at login
2. go to kde settings autostart
3. check that skype is well added in autostart
4. Restart the PC then login

OBSERVED RESULT

Skype does not start

EXPECTED RESULT

Skype starts

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20221111
KDE Plasma Version: 5.26.3
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.7
KDE GEARS 22.08.3

ADDITIONAL INFORMATION

No problem till yesterday
Comment 1 Philippe ROUBACH 2022-11-13 09:50:12 UTC
About some months ago, I got a similar problem with the scripts.
Comment 2 Nate Graham 2022-11-14 21:35:09 UTC
Can you run `/usr/lib/systemd/user-generators/systemd-xdg-autostart-generator` in a terminal window and paste the output here?
Comment 3 Philippe ROUBACH 2022-11-14 21:55:50 UTC
x@y:~> /usr/lib/systemd/user-generators/systemd-xdg-autostart-generator
x@y:~>
Comment 4 Nate Graham 2022-11-15 18:03:08 UTC
Ok, that seems fine. Can you paste the contents of the desktop file for Skype's autostart entry?
Comment 5 Philippe ROUBACH 2022-11-15 18:08:35 UTC
Created attachment 153771 [details]
desktop file for Skype's autostart entry
Comment 6 Nicolas Fella 2022-11-15 18:11:34 UTC
Sounds like https://bugs.kde.org/show_bug.cgi?id=433299
Comment 7 Nate Graham 2022-11-15 18:17:02 UTC
That was traced to https://github.com/systemd/systemd/pull/18782 which was merged, though.

The desktop file looks sane to me. It does have "X-GNOME-Autostart-enabled" in it, but that's not quite the same as "X-GNOME-Autostart-Phase" which systemd is known to have issues with (see https://github.com/systemd/systemd/issues/18791).

Out of curiosity though, does it start working if you edit the file to remove the "X-GNOME-Autostart-enabled=true" line?
Comment 8 Philippe ROUBACH 2022-11-15 18:56:23 UTC
>> Out of curiosity though, does it start working if you edit the file to remove the "X-GNOME-Autostart-enabled=true" line?

It fails.

There was no problem for many years. Suddenly it fails.
Comment 9 Philippe ROUBACH 2022-11-16 05:59:24 UTC
Created attachment 153791 [details]
packges updated at 2022/11/15 1
Comment 10 Philippe ROUBACH 2022-11-16 05:59:45 UTC
Created attachment 153792 [details]
packges updated at 2022/11/15 2
Comment 11 Philippe ROUBACH 2022-11-16 06:00:06 UTC
Created attachment 153793 [details]
packges updated at 2022/11/15 3
Comment 12 Philippe ROUBACH 2022-11-16 06:00:24 UTC
Created attachment 153794 [details]
packges updated at 2022/11/15 4
Comment 13 Philippe ROUBACH 2022-11-16 06:00:44 UTC
Created attachment 153795 [details]
packges updated at 2022/11/15 5
Comment 14 Philippe ROUBACH 2022-11-16 06:01:03 UTC
Created attachment 153796 [details]
packges updated at 2022/11/15 6
Comment 15 Philippe ROUBACH 2022-11-16 06:02:33 UTC
Today 2022/11/16, no more problem !

See the list of the packages updated at 2022/11/15
Comment 16 Nate Graham 2022-11-16 17:19:30 UTC
Cool, thanks. Seems like it wasn't a KDE bug.
Comment 17 Philippe ROUBACH 2022-11-17 10:03:20 UTC
Yesterday 2022-11-16 there was an update to KDE frameworks 5.100.0.

The problem reappeared this morning.
Comment 18 Philippe ROUBACH 2022-11-17 10:10:55 UTC
Created attachment 153825 [details]
packages updated at 202-11-16 1
Comment 19 Philippe ROUBACH 2022-11-17 10:11:22 UTC
Created attachment 153826 [details]
packages updated at 202-11-16 2
Comment 20 Philippe ROUBACH 2022-11-17 10:11:41 UTC
Created attachment 153827 [details]
packages updated at 202-11-16 3
Comment 21 Philippe ROUBACH 2022-11-17 10:12:05 UTC
Created attachment 153828 [details]
packages updated at 202-11-16 4
Comment 22 Philippe ROUBACH 2022-11-17 10:12:40 UTC
Created attachment 153829 [details]
packages updated at 202-11-16 5
Comment 23 Philippe ROUBACH 2022-11-17 10:12:57 UTC
Created attachment 153830 [details]
packages updated at 202-11-16 6
Comment 24 Philippe ROUBACH 2022-11-17 10:13:14 UTC
Created attachment 153831 [details]
packages updated at 202-11-16 7
Comment 25 Nicolas Fella 2022-11-17 10:15:12 UTC
It's extremely unlikely that the frameworks update changed anything here
Comment 26 Philippe ROUBACH 2022-11-17 10:39:37 UTC
Ok, but there were also other packages.

xembedsniproxy 5.26.3
gmenudbusmenuproxy 5.26.3
plasma5-workspace-libs 5.26.3
plasma5-workspace 5.26.3
plasma5-workspace-lang 5.26.3
plasma5-session 5.26.3
plasma5-session-wayland 5.26.3

gtk4-schema 4.8.2
libgtk-4.1 4.8.2
gtk4tools 4.8.2
gtk4-lang 4.8.2

libLLVM15 15.0.4
libLLVM15-32bit 15.0.4

libavif15 0.11.1
libavif15-32bit 0.11.1
libexiv2-27 0.27.5
libtiff5 4.4.0
libtiff5-32bit 4.4.0
libtiff-devel 4.4.0

python310-setuptools 65.5.1

wireless-regdb 20221012
Comment 27 Nate Graham 2022-11-18 17:05:50 UTC
Can you run this command:

kwriteconfig5 --file startkderc --group General --key systemdBoot false

Then reboot, and see if Skype autostarts as expected.
Comment 28 Philippe ROUBACH 2022-11-25 08:48:01 UTC
I didn't use "kwriteconfig5 --file startkderc --group General --key systemdBoot false"

I just waited.
Result : one week without any problem.

Hypothesis: some process launched by sytemd or kde login disturbs skype launching.

If I encounter a problem I will use "kwriteconfig5 --file startkderc --group General --key systemdBoot false"
Comment 29 Philippe ROUBACH 2022-11-26 09:10:54 UTC
Also randomly a script launching fails. Script is well launching but does not finish its starting. I must kill it, then launch it again.

Here is the script
************************************************************************************************
#!/bin/bash

sleep 10s

bash -c '/usr/bin/google-chrome-stable --profile-directory=Default --app-id=celnaknmndcdcjcagffhbhciignkeokb &'

while [ true ]
do
   sleep 5
   status=$(wmctrl -l | grep "Facebook")
   if [ "$status" != "" ] ; then
      break
   fi
done
WID="$(wmctrl -lx | grep "Facebook")"; kdocker -qtw "${WID%% *}" -i ~/.local/share/icons/hicolor/32x32/apps/chrome-celnaknmndcdcjcagffhbhciignkeokb-Default.png &
********************************************************************************************************
Comment 30 Bug Janitor Service 2022-12-11 05:08:16 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 31 Philippe ROUBACH 2022-12-11 08:05:28 UTC
i supplied the requested info.
Comment 32 Nate Graham 2022-12-15 00:01:27 UTC
First we need the name of the generated service. Pleas run `ls $XDG_RUNTIME_DIR/systemd/generator.late/*skype*` in a terminal window, which will tell you the name of the systemd service for Skype's autostart entry. Then run `systemctl status --user [service name]` and paste the contents here.

Also can you paste the output of `cat $XDG_RUNTIME_DIR/systemd/generator.late/*skype*`? It might help to see the generated systemd service's contents too.
Comment 33 Philippe ROUBACH 2022-12-15 07:11:08 UTC
:~> ls $XDG_RUNTIME_DIR/systemd/generator.late/*skype*
/run/user/1001/systemd/generator.late/app-skypeforlinux@autostart.service

:~> systemctl status --user app-skypeforlinux@autostart.serviceWarning: The unit file, source configuration file or drop-ins of app-skypeforli>
● app-skypeforlinux@autostart.service - Skype for Linux
     Loaded: loaded (/home/roubach/.config/autostart/skypeforlinux.desktop; gen>
     Active: active (running) since Thu 2022-12-15 07:47:31 CET; 20min ago
       Docs: man:systemd-xdg-autostart-generator(8)
    Process: 2555 ExecStart=/usr/bin/skypeforlinux (code=exited, status=0/SUCCE>
   Main PID: 2555 (code=exited, status=0/SUCCESS)
      Tasks: 72 (limit: 4915)
     Memory: 481.0M
        CPU: 13.257s
     CGroup: /user.slice/user-1001.slice/user@1001.service/app.slice/app-skypef>
             ├─2577 "/usr/share/skypeforlinux/skypeforlinux --executed-from=/ho>
             ├─2606 "/usr/share/skypeforlinux/skypeforlinux --type=zygote --no->
             ├─2607 "/usr/share/skypeforlinux/skypeforlinux --type=zygote --ena>
             ├─2609 "/usr/share/skypeforlinux/skypeforlinux --type=zygote --ena>
             ├─2656 /usr/share/skypeforlinux/chrome_crashpad_handler --monitor->
             ├─2727 "/usr/share/skypeforlinux/skypeforlinux --type=gpu-process >
             ├─2739 "/usr/share/skypeforlinux/skypeforlinux --type=utility --ut>
             └─2796 "/usr/share/skypeforlinux/skypeforlinux --type=renderer --e>
Comment 34 Nate Graham 2022-12-15 19:14:11 UTC
That's odd. It definitely looks like it's running. what does `ps -e | grep -i skype` show?
Comment 35 Philippe ROUBACH 2022-12-15 19:50:41 UTC
:~> ps -e | grep -i skype
 2577 ?        00:01:08 skypeforlinux
 2606 ?        00:00:00 skypeforlinux
 2607 ?        00:00:00 skypeforlinux
 2609 ?        00:00:00 skypeforlinux
 2727 ?        00:03:58 skypeforlinux
 2739 ?        00:00:37 skypeforlinux
 2796 ?        00:21:39 skypeforlinux
21585 ?        00:00:01 skypeforlinux
Comment 36 Nate Graham 2022-12-15 20:33:33 UTC
Ok, so Skype is fact running.

What exactly is the problem?
Comment 37 Philippe ROUBACH 2022-12-15 20:38:25 UTC
Skype randomly does not autostart.
Comment 38 Nate Graham 2022-12-15 20:43:08 UTC
When you ran the `ps` command I asked for, Skype was running and you could interact with it? Or it was running, but it showed no interactive UI?
Comment 39 Philippe ROUBACH 2022-12-15 20:47:34 UTC
Randomly Skype is not launched. Skype is not running. Skype is not in the process list.
Comment 40 Nate Graham 2022-12-15 20:48:34 UTC
(In reply to Nate Graham from comment #38)
> When you ran the `ps` command I asked for, Skype was running and you could
> interact with it? Or it was running, but it showed no interactive UI?
I need an answer to this question that I just asked, please.
Comment 41 Philippe ROUBACH 2022-12-15 20:52:28 UTC
If you execute "ps -e | grep -i skype" then you get nothing.
Comment 42 Nate Graham 2022-12-15 20:53:16 UTC
But in comment 35, you showed the opposite. I'm very confused now.
Comment 43 Philippe ROUBACH 2022-12-15 20:57:18 UTC
Today, Skype is launched with succes by the kde autostart function.
Randomly, it is not autostarted.
Comment 44 Nate Graham 2022-12-15 21:02:26 UTC
Ok. I think this is beyond by debugging ability at this point.
Comment 45 David Redondo 2022-12-16 08:30:56 UTC
> Can you run `/usr/lib/systemd/user-generators/systemd-xdg-autostart-generator` in a terminal window and paste the output here?

Problem is that it's output goes straight to the journal (at least on my system).   SYSTEMD_LOG_LEVEL=debug might also be useful. See also https://www.freedesktop.org/software/systemd/man/systemd.generator.html example 3

 At first I suspected  X-GNOME-Autostart-enabled=true interfering but that isn't the case.
Comment 46 Philippe ROUBACH 2022-12-16 09:20:57 UTC
In the past I sent a report about, with openSUSE Argon 19.3, suddenly all apps [*] and my 4 scripts fails to autostart, definitively.

Nobody found any solution, then I switched to openSUSE tumbleweed to get a kde autostart running well.

[*] I checked with other app than Skype like VLC, etc.
Comment 47 David Edmundson 2023-01-25 22:40:00 UTC
>then I switched to openSUSE tumbleweed to get a kde autostart running well.


and there it worked?
Comment 48 Nate Graham 2023-01-25 22:45:32 UTC
And in particular, do they disable the systemd boot feature by default? That could explain the differences.
Comment 49 Fabian Vogt 2023-01-26 08:15:33 UTC
(In reply to Nate Graham from comment #48)
> And in particular, do they disable the systemd boot feature by default? That
> could explain the differences.

No, systemd boot is enabled.
Comment 50 Bug Janitor Service 2023-02-10 03:51:56 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 51 Philippe ROUBACH 2023-02-10 07:53:06 UTC
(In reply to David Edmundson from comment #47)
> >then I switched to openSUSE tumbleweed to get a kde autostart running well.
> 
> 
> and there it worked?

it works better but not well. that's why i sent this report
Comment 52 Nate Graham 2023-02-12 16:20:12 UTC
Sounds like maybe Tumbleweed ships a newer Systemd version which fixed this issue?
Comment 53 Philippe ROUBACH 2023-02-12 17:51:40 UTC
the systemd update date is 2023/01/30  and version is 252.5.

i don't know of the issue is fixed.
Comment 54 Nate Graham 2023-02-12 18:02:14 UTC
(In reply to Philippe ROUBACH from comment #53)
> the systemd update date is 2023/01/30  and version is 252.5.
Thanks.

> i don't know of the issue is fixed.
Well is it still happening or not? :)
Comment 55 Philippe ROUBACH 2023-02-12 18:13:08 UTC
>> Well is it still happening or not? 

It's a random issue.
Comment 56 Nate Graham 2023-02-12 18:31:23 UTC
So sometimes when you boot up the system Skype autostarts, and sometimes it doesn't?
Comment 57 Philippe ROUBACH 2023-02-13 08:08:11 UTC
(In reply to Nate Graham from comment #56)
> So sometimes when you boot up the system Skype autostarts, and sometimes it
> doesn't?

Yes, skype or a script.
Comment 58 Philippe ROUBACH 2023-02-21 11:02:02 UTC
I get 2 times the problem.

Problem not solved.
Comment 59 MitraX 2023-05-22 17:51:23 UTC Comment hidden (spam)
Comment 60 Nate Graham 2023-05-22 18:03:56 UTC Comment hidden (spam)
Comment 61 Fabian Vogt 2023-05-23 10:40:20 UTC Comment hidden (spam)
Comment 62 Philippe ROUBACH 2023-05-23 10:59:50 UTC
I forget to indicate that I sent a report to openSUSE team.

https://bugzilla.opensuse.org/show_bug.cgi?id=1200141
Comment 63 Philippe ROUBACH 2023-06-05 15:03:13 UTC
randomly also kontact does not start !
kontact is not in "autostart" in the contrary of skype and scripts.
Comment 64 Nate Graham 2023-12-08 20:15:13 UTC
Unfortunately nobody has been able to reproduce the issue, and we haven't gotten any other reports of this happening, so I'm afraid there isn't much we can do about it, sorry. I'd recommend following up with your distro for further support.