After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 667609 - Changes to wacom have no effect
Changes to wacom have no effect
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Wacom
3.3.x
Other Linux
: Normal normal
: ---
Assigned To: Peter Hutterer
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-01-10 02:11 UTC by Jason Gerecke
Modified: 2012-01-10 10:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to fix g-c-c (1.64 KB, patch)
2012-01-10 02:11 UTC, Jason Gerecke
committed Details | Review
Patch to fix g-s-d (1.65 KB, patch)
2012-01-10 02:12 UTC, Jason Gerecke
committed Details | Review

Description Jason Gerecke 2012-01-10 02:11:16 UTC
Created attachment 204924 [details] [review]
Patch to fix g-c-c

Changing settings in the Wacom panel does not result in the settings being applied or saved. Looking further into the issue, it appears that gsettings is getting confused over the relocateable path. Specifically, the lack of a trailing slash causes it to interpret the final piece of the path (e.g. "usb:0x56a:0x15") as part of the key name.

Patches attached for gnome-control-center. Similar patch to gnome-settings-daemon also required.
Comment 1 Jason Gerecke 2012-01-10 02:12:59 UTC
Created attachment 204925 [details] [review]
Patch to fix g-s-d
Comment 2 Peter Hutterer 2012-01-10 03:49:08 UTC
>Path names must end in a trailing slash. Without it, the varous
>g_settings_* functions get confused about where to seperate the

"various" and "separate"

>@@ -374,7 +374,7 @@ add_stylus_to_device (GsdWacomDevice *device,
> 		    libwacom_stylus_is_eraser (wstylus) == FALSE)
> 			return;
> 
>-		stylus_settings_path = g_strdup_printf ("%s/0x%x", settings_path, id);
>+		stylus_settings_path = g_strdup_printf ("%s0x%x/", settings_path, id);

looks like you dropped a / here, is this intended?
Comment 3 Jason Gerecke 2012-01-10 05:15:40 UTC
Yes, it's correct (patches were verified to work on my system). settings_path is just a printf of WACOM_DEVICE_CONFIG_BASE, so it already has the trailing slash. The dropped slash in this hunk would have been a duplicate.

It'd be nice if g_settings_new_with_path just appended a trailing slash if needed (or spat out a warning/assertion)...
Comment 4 Peter Hutterer 2012-01-10 05:24:21 UTC
In that case, Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> for both of them