Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 269505 - xhkconf for x11-misc/xhkeys fails to save configurations without a pre-existing configuration file
Summary: xhkconf for x11-misc/xhkeys fails to save configurations without a pre-existi...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Desktop Misc. Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-12 07:18 UTC by Leo
Modified: 2010-06-06 15:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leo 2009-05-12 07:18:26 UTC
Emerged x11-misc/xhkeys and went about trying to configure it using xhkconf - the configuration utility that comes in the package.
How ever I noticed it would pretend after configuring a key that I hadn't done so and gave me the menu option again instead of the expected 'confirm this binding'.
Thinking this just odd and just a change since I last used xhkeys years ago, I ran xhkeys which complained about no configuration file - clearly none had been created.
I created an empty ~/.XHkeys configuration file with touch, afterward xhkconf works as expected and xhkeys was happy with a configuration file to play with.

Basically: The configuration of xhkeys by xhkconf isn't possibly on a fresh emerge as xhkconf doesn't create a blank configuration file to write to.

Reproducible: Always

Steps to Reproduce:
1. Emerge xhkeys with no pre-existing configuration file (~/.XHkeys) or just rename your existing one
2. Attempt to bind a key by xhkconf (setup utility)
3. Run xhkeys or manually look for ~/.XHkeys configuration file

Actual Results:  
When you attempt to use xhkconf to configure a key it repeats the menu listing again. It does not save your setting as evidenced by no ~/.XHkeys being created.

Expected Results:  
xhkconf should have created an empty ~/.XHkeys configuration file on first load to save settings too.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-06-06 15:38:37 UTC
(In reply to comment #0)
> Basically: The configuration of xhkeys by xhkconf isn't possibly on a fresh
> emerge as xhkconf doesn't create a blank configuration file to write to.

works fine...

$ xhkconf 
----------- ADD/MODIFY hot key -------------
Type a key combination you wish to add/modify
Quits if idle within 10 secs

Unused scan code;modiifier:  32;1

Select command type
1. Internal Function
2. Application
3. Plugin Call
4. Key Event
5. Mouse Event
6. Cancel
Enter selection by number, or cap. letter: 2
Enter the shell command to call the application:
huora

OSD title types:
	1. Standard (command line)
	2. Custom
	3. Disabled (no OSD message)
Select title type: 1

Scan code:  32 (0x20)  State:   1 (0x01)
	OperType:  A [Application]
	OSD title: << standard >>
	Command:   huora

Accept? (y, n): y

$ ls .X
.Xauthority  .XHkeys