Bug 711618 - Allow multiple wacomcplrc files to be used
Summary: Allow multiple wacomcplrc files to be used
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: wacomcpl
Version: 6.1
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Peter Hutterer
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-07 22:51 UTC by Scott Spurrier
Modified: 2018-11-29 21:50 UTC (History)
2 users (show)

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.
Clone Of:
Environment:
Last Closed: 2011-12-06 12:12:09 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1588 0 normal SHIPPED_LIVE xorg-x11-drv-wacom and wacomcpl bug fix and enhancement update 2011-12-06 00:38:48 UTC

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


Note You need to log in before you can comment on or make changes to this bug.