- Package:
- gnome-tweaks
- Source:
- gnome-tweaks
- Submitter:
- Martin
- Date:
- 2025-12-15 18:11:02 UTC
- Severity:
- important
In order to correct gamma value I installed "xcalib", created a starter (xcalib.desktop) which, manually activated, works properly. But when adding it to the start-up group in gnome-tweak-tool it seems not to be performed during system-startup. I do not know if this really is an issue of g-t-t, because even copying the a.m. starter to /etc/xdg/autostart and granting root permission did not force it to be executed when booting. Solving this minor bug (or problem) would make Debian Sid even more sophiticated than it already is! Thank you for your excellent work!
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)
time 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) --- It would be nice if this got upstreamed...
I don't think you did. Instead, I think you ran into a different bug with the same symptoms. The 10 year old bug is probably obsolete. gnome-tweaks as packaged in testing/unstable does not contain "appinfo.get_filename(appinfo)". It does contain "self._desktop_file = appinfo.get_filename()". I think what has happened is that you locally modified /usr/lib/python3/dist-packages/gtweak/utils.py with a short-term workaround for pygobject regression #1117444, and after #1117444 was fixed more correctly in pygobject, the workaround became harmful. (The same workaround was proposed upstream in https://gitlab.gnome.org/GNOME/gnome-tweaks/-/merge_requests/173 where I asked for it to be rejected, because I could see that this would happen. As a result it was never applied upstream.) smcv
Your are very likely correct. I seem to remember playing around with this in the past to get gnome- tweaks to load (I'm on Sid) and didn't consider the additional impact. Thanks for the clarification and insight.