Bug#785124: Gnome Tweaks Crashes With AutoStart .Desktop Files
Craig Prevallet
penguintx at hotmail.com
Sat Dec 13 17:08:22 GMT 2025
On Sat, 13 Dec 2025 10:46:19 -0600 Craig Prevallet
<penguintx at hotmail.com> wrote:
> I ran into this (10 year old!) bug as well. I've got three autostart
> desktop files in my autostart folder (/home/craig/.config/autostart)
> removing them allows gnome-tweaks to start as a workaround.
>
> I get the following Python traceback if someone wants to take the
time
> to troubleshoot:
>
>
>
> File "/usr/bin/gnome-tweaks", line 100, in <module>
> from gtweak.app import GnomeTweaks
> File "/usr/lib/python3/dist-packages/gtweak/app.py", line 13, in
> <module>
> from gtweak.tweakview import Window
> File "/usr/lib/python3/dist-packages/gtweak/tweakview.py", line 20,
> in <module>
> from gtweak.tweaks.tweak_group_startup import TWEAK_GROUP as
> StartupApplicationTweaks
> File "/usr/lib/python3/dist-
> packages/gtweak/tweaks/tweak_group_startup.py", line 348, in <module>
> TWEAK_GROUP = AutostartTweakGroup()
> File "/usr/lib/python3/dist-
> packages/gtweak/tweaks/tweak_group_startup.py", line 243, in __init__
> self._startup_dapps = self._get_startup_desktop_files()
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
> File "/usr/lib/python3/dist-
> packages/gtweak/tweaks/tweak_group_startup.py", line 327, in
> _get_startup_desktop_files
> if not AutostartFile(dappinfo).is_start_at_login_enabled():
> ~~~~~~~~~~~~~^^^^^^^^^^
> File "/usr/lib/python3/dist-packages/gtweak/utils.py", line 156, in
> __init__
> self._desktop_file = appinfo.get_filename(appinfo)
>
> --
> Craig Prevallet <penguintx at hotmail.com>
>
>
Ok, I couldn't help myself and had a deeper look. The following allows
gnome-tweaks to open for with items in the autostart folder.
File "/usr/lib/python3/dist-packages/gtweak/utils.py", line 156
156c156
< self._desktop_file = appinfo.get_filename(appinfo)
---
> self._desktop_file = appinfo.get_filename()
It would be nice if this got upstreamed...
--
Craig Prevallet <penguintx at hotmail.com>
More information about the pkg-gnome-maintainers
mailing list