Bug 444387 - Autostart does not work as it used to be
Summary: Autostart does not work as it used to be
Status: RESOLVED DOWNSTREAM
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_autostart (show other bugs)
Version: 5.23.1
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Nicolas Fella
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-25 20:59 UTC by Ahmed
Modified: 2022-11-09 19:30 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ahmed 2021-10-25 20:59:12 UTC
SUMMARY
When I add any application using Autostart then restart my machine, it disappears.

STEPS TO REPRODUCE
1. Open Autostart
2. Click Add... -> Add Application... -> Add any application
3. Close Autostart then open it again.

OBSERVED RESULT
The added application disappears after closing Autostart and opening it again.

EXPECTED RESULT
To work as it used to be.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 21.10
KDE Plasma Version: 5.23.1
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
This issue is not new, I noticed it before, but I was expecting it to be fixed in the new version of KDE Plasma.
Comment 1 Nicolas Fella 2021-10-31 21:14:05 UTC
This works as expected here. What app are you adding?
Comment 2 Ahmed 2021-10-31 23:15:39 UTC
(In reply to Nicolas Fella from comment #1)
> This works as expected here. What app are you adding?

Any applications, it does not matter. After I add an application, then check properties, its size = 0b, and I can not remove its entry.
Furthermore, when I close plasmasettings and open it again, there is nothing to be found.
Comment 3 Bug Janitor Service 2021-11-15 04:39:10 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 4 Ahmed 2021-12-04 22:30:59 UTC
I installed Ubuntu 20.10 recently, and I encountered the same issue, then I found out the cause of this issue.

The permission of auto-start folder was set as sudo, and I fixed it by changing the permission of that folder.

It was a fresh installation, so I do not know what is the cause of this issue.
Comment 5 Ahmed 2021-12-04 22:33:36 UTC
I installed Ubuntu 20.10 recently, and I encountered the same issue, then I found out the cause of this issue.

The permission of auto-start folder was set as sudo, and I fixed it by changing the permission of that folder.

It was a fresh installation, so I do not know what is the cause of this issue.
Comment 6 Landgraf132 2022-11-08 18:42:29 UTC
Appears after upgrading to kde 5.26.2.
I add apps to autostart but they don't start. I deleted the ./.config/autostart folder, it was recreated and the added applications appeared there, however, they do not autostart. What logs can I look at in order to understand what the problem is?
Comment 7 Nate Graham 2022-11-08 18:51:51 UTC
Sounds like Ahmed's issue is fixed now, and was not a KDE problem but rather a distro or local configuration problem.

Landgraff, you can run `/usr/lib/systemd/user-generators/systemd-xdg-autostart-generator` in a terminal window. It will tell you what's wrong with your autostart files, and then you can file bug reports for systemd at https://github.com/systemd/systemd/issues and fix them locally yourself.
Comment 8 Landgraf132 2022-11-08 19:14:30 UTC
(In reply to Nate Graham from comment #7)
> Sounds like Ahmed's issue is fixed now, and was not a KDE problem but rather
> a distro or local configuration problem.
> 
> Landgraff, you can run
> `/usr/lib/systemd/user-generators/systemd-xdg-autostart-generator` in a
> terminal window. It will tell you what's wrong with your autostart files,
> and then you can file bug reports for systemd at
> https://github.com/systemd/systemd/issues and fix them locally yourself.
/usr/lib/systemd/user-generators/systemd-xdg-autostart-generator runs without error. Can I somehow trigger the startup event of autostart apps? 
journalctl -xe  does not show any important errors.

>ноя 08 22:10:47 Celestia plasmashell[4794]: trying to show an empty dialog
>ноя 08 22:10:47 Celestia plasmashell[4794]: Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
>ноя 08 22:10:47 Celestia plasmashell[4794]: Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
>ноя 08 22:10:47 Celestia kwin_x11[4752]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 5326, resource id: 31457410, >major code: 14 (GetGeometry), minor code: 0
>ноя 08 22:10:47 Celestia kwin_x11[4752]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 5327, resource id: 31457410, >major code: 14 (GetGeometry), minor code: 0
>ноя 08 22:10:47 Celestia kwin_x11[4752]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 5328, resource id: 31457410, >major code: 14 (GetGeometry), minor code: 0
>ноя 08 22:10:47 Celestia kwin_x11[4752]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 5329, resource id: 31457410, >major code: 14 (GetGeometry), minor code: 0
>ноя 08 22:10:47 Celestia kwin_x11[4752]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 5330, resource id: 31457410, >major code: 14 (GetGeometry), minor code: 0
>ноя 08 22:10:48 Celestia plasmashell[4794]: Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
>ноя 08 22:10:48 Celestia plasmashell[4794]: Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
>ноя 08 22:10:51 Celestia kwin_x11[4752]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 6195, resource id: 31457414, >major code: 18 (ChangeProperty), minor code: 0
>ноя 08 22:10:51 Celestia systemd[1682]: Started Konsole - Terminal.
Comment 9 Nate Graham 2022-11-09 19:30:55 UTC
Since this bug report is closed and was about something else, can you file a new one for your issue? In it, attach:
- the .desktop file for one of the app that you expect to autostart, but does not
- a screenshot of System Settings > Startup and Shutdown > Autostart
- the output of `/usr/lib/systemd/user-generators/systemd-xdg-autostart-generator && echo $?`

Thanks!