FS#46384 - [gpm] "disable-paste: cannot open mouse connection" message on login

Attached to Project: Arch Linux
Opened by Alexander Meshcheryakov (Self-Perfection) - Monday, 21 September 2015, 21:59 GMT
Last edited by Eric Belanger (Snowman) - Tuesday, 27 October 2015, 00:53 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Eric Belanger (Snowman)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

If following conditions are met:
1) gpm is installed (pretty common as required by vim);
2) gpm service is not running (a few users know about it and enable it)
3) there is running process with 'gpm' sequence in process name, e.g. 'gpmaster.sh'

Then logging in into tty console produces error message
"disable-paste: cannot open mouse connection"

The reason is inaccurate check for running gpm service in /etc/profile.d/gpm.sh. I propose solution: replace
`[ -n "$(pgrep gpm)" ]`
with
`pidof -s gpm >/dev/null`

Additional info:
* gpm 1.20.7-5
* proposed fix is attached as a patch
This task depends upon

Closed by  Eric Belanger (Snowman)
Tuesday, 27 October 2015, 00:53 GMT
Reason for closing:  Fixed
Additional comments about closing:  gpm-1.20.7-6 in [testing]

Loading...