Tahrpup keyboard shortcuts don't work at startup

A home for all kinds of Puppy related projects
Post Reply
Message
Author
jimbo66
Posts: 11
Joined: Tue 05 Jan 2016, 04:57
Location: Sydney, Australia

Tahrpup keyboard shortcuts don't work at startup

#1 Post by jimbo66 »

I'm new to Puppy (tahr 6.0.2) and I have a problem in that 2 of my 3 shortcuts don't work at startup, I have to restart windows manager ??? - the one that works at startup is #3. Some sort of JWM bug?


<Key mask="C" key="grave">exec:/usr/bin/libreoffice4.3 --calc -o /root/my-documents/jrs.ods</Key>

<Key mask="C" key="apostrophe">exec:/bin/sh /root/cmc</Key>

<Key keycode="115">exec:xdotool mousemove --polar 0 0</Key>

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#2 Post by bigpup »

Have you done Quickpet->Info->Tahrpup updates?
If not, do so.
Also, install any offered service packs.

Reboot after doing the updates.

May have to redo the keyboard shortcuts setup.

There was a bug the update should fix.
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

jimbo66
Posts: 11
Joined: Tue 05 Jan 2016, 04:57
Location: Sydney, Australia

#3 Post by jimbo66 »

Thanks for the reply, problem persists. However, I can live with it for the moment, as I usually only boot once a week.

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#4 Post by bigpup »

So you did do all the Tahrpup updates and it still is not working?
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

jimbo66
Posts: 11
Joined: Tue 05 Jan 2016, 04:57
Location: Sydney, Australia

#5 Post by jimbo66 »

Yes, did all the updates, still no joy. As a temporary get-around is there a console command to re-start jwm that I could put in a tray icon.?

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

#6 Post by MochiMoppel »

jimbo66 wrote: is there a console command to re-start jwm that I could put in a tray icon.?
This would be

Code: Select all

 jwm -restart
but this would be only a work around without fixing the problem.

As none of your shortcuts are standards, I assume that they are saved in your pupsave file, right? I also take from your description that #1 and #2 work after you restart JWM, right?

If so then something is fishy with the way keysyms (like 'apostrophe' and 'grave') are assigned to keycodes. Since #3 works for you and #3 is the one defined by keycodes, you should try keycodes for #1 and #2.

Open a console and type xev.
With the small window active type an apostrophe. You should see an output that looks like this:

Code: Select all

KeyRelease event, serial 36, synthetic NO, window 0x2c00001,
    root 0xbd, subw 0x2c00002, time 23821408, (33,39), root:(434,577),
    state 0x0, keycode 48 (keysym 0x27, apostrophe), same_screen YES,
    XLookupString gives 1 bytes: (27) "'"
    XFilterEvent returns: False
In above example (your output may differ) you see that 'apostrophe' is a symbolic name for keycode 48.
Now change you shortcut to

Code: Select all

<Key mask="C" keycode="48">exec:/bin/sh /root/cmc</Key>
and see if this works at startup.

jimbo66
Posts: 11
Joined: Tue 05 Jan 2016, 04:57
Location: Sydney, Australia

#7 Post by jimbo66 »

They're stored in /root/.jwm/jwmrc-personal, Pupsave happens automatically and regularly and I think at shutdown.

Thks for the restart, I will try using keycodes, should have thought of that.......

Even so, it's still a bug, and even though things that don't work bug me, it's only a once a week problem.

It's Saturday night here, so I may be away until Monday.

Thks again for the advice.

jimbo66
Posts: 11
Joined: Tue 05 Jan 2016, 04:57
Location: Sydney, Australia

#8 Post by jimbo66 »

Using keycodes worked....................thks

Post Reply