Xfce Forum

Sub domains
 

You are not logged in.

#1 2012-09-11 20:52:36

philomath
Member
Registered: 2012-09-11
Posts: 2

[Solved] keyboard shortcut issue

Hi,

I have set a shortcut, <Super>l, to execute slock, which was /usr/bin/slock (and suid root), and all was fine and good.

Recently I have uninstalled slock, and changed the command to lock, which is ~/bin/lock (in path, not suid root but setcap CAP_DAC_READ_SEARCH+ep).  executing lock in terminal, or as a panel plugin, works just fine, but the above shortcut just makes the monitor blink for a second.

I have then changed the command to ~/tst, which is a simple wraper:

~ $ cat tst.c
#include <stdio.h>
#include <stdlib.h>

int
main(void)
{
    system("echo starting... > dbg");
    int i = system("lock 2>> dbg");
    FILE *fp = fopen("dbg", "a");
    fprintf(fp, "%d",i);
    return i;
}

~/dbg is indeed created, and its content is:
~ $ cat dbg
starting...
256

How do I debug such an issue?

XFCE 4.10 on Arch Linux.

Thanks.

Offline

#2 2012-09-11 21:10:35

philomath
Member
Registered: 2012-09-11
Posts: 2

Re: [Solved] keyboard shortcut issue

Never mind, the problem was with my application, it timed out too early.
Everything is working perfectly, and sorry for the noise.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 512.03 KiB (Peak: 520.8 KiB) ]