Bug 711618

Summary: Allow multiple wacomcplrc files to be used
Product: Red Hat Enterprise Linux 6 Reporter: Scott Spurrier <spurrier>
Component: wacomcplAssignee: Peter Hutterer <peter.hutterer>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: high Docs Contact:
Priority: high    
Version: 6.1CC: mboisver, tpelka
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: wacomcpl-0.10.0-2.el6 Doc Type: Bug Fix
Doc Text:
Prior to this update, the wacomcpl utility supported only a single wacomcplrc file in the user's home directory. All the user settings were restored from this file when logging in. When various users logged into multiple machines with a different setup, a user had to update the wacomcplrc file every time. With this update, wacomcpl is modified to support host-specific wacomcplrc files. If no file exists with a hostname suffix, wacomcpl finally tries to load the wacomcplrc file without the suffix.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 12:12:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Scott Spurrier 2011-06-07 22:51:26 UTC
Description of problem:
The current implementation of the wacomcpl tool writes out a single .wacomcplrc
file in the user's home directory. When a user logs in, this file is sourced to
restore all the settings. We have several users here logging into multiple
machines with different setup (i.e cintiq hooked up in a "leftof" configuration
vs. a "rightof" configuration). This means a user would need to run the
wacomcpl tool every time when logging into machines with different setup to
update their .wacomcplrc. To address this issue, I wrote a patch to have the
wacomcpl tool write out the .wacomcplrc file with a hostname at the end of the
file such as .wacomcplrc.hostname. I also modified the
/etc/X11/xinit/xinitrc.d/wacomcpl.sh file to try loading the .wacomcplrc file
based on this. If no file exists with a hostname, it finally tries to load just
.wacomcplrc file without the hostname. I also added an extra check to see if a
wacom.conf file exist in the /etc directory.
This is because we have a few special review machines where the wacomcpl tool
would not work (multiple graphics card with SDI). For these machines, we
figured out the optimal wacom settings and would like to force these settings
to be loaded and not the users .wacomcplrc settings. The patch works great for
us and should not break anyone. We would like to request this to be added to
the next update for the wacomcpl package if possible.

Comment 2 Peter Hutterer 2011-06-08 06:15:14 UTC
To avoid breaking current setups, the order of host-based includes would have to be the following:

- load host-based $HOME/wacomcplrc if one exists (since they are the newest ones)
- lost standard $HOME/wacomcplrc if one exists
- load /etc/wacomcplrc 

This order allows users to override system-configurations with user-specific configurations (e.g. calibration).

Comment 3 RHEL Program Management 2011-06-09 02:19:59 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux maintenance release. Product Management has 
requested further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed 
products. This request is not yet committed for inclusion in an Update release.

Comment 8 Peter Hutterer 2011-07-06 05:42:20 UTC
MODIFIED

wacomcpl-0.10.0-2.el6 is available in brew

Comment 12 Eliska Slobodova 2011-10-10 12:12:55 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Prior to this update, the wacomcpl utility supported only a single wacomcplrc file in the user's home directory. All the user settings were restored from this file when logging in. When various users logged into multiple machines with a different setup, a user had to update the wacomcplrc file every time. With this update, wacomcpl is modified to support host-specific wacomcplrc files. If no file exists with a hostname suffix, wacomcpl finally tries to load the wacomcplrc file without the suffix.

Comment 14 errata-xmlrpc 2011-12-06 12:12:09 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1588.html