Adding open selected text patch
This commit is contained in:
parent
137bb152b3
commit
c7503f5737
7 changed files with 34 additions and 1 deletions
13
patch/openselectedtext.c
Normal file
13
patch/openselectedtext.c
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
void
|
||||
selopen(const Arg *dummy)
|
||||
{
|
||||
pid_t chpid;
|
||||
|
||||
if ((chpid = fork()) == 0) {
|
||||
if (fork() == 0)
|
||||
execlp("xdg-open", "xdg-open", getsel(), NULL);
|
||||
exit(1);
|
||||
}
|
||||
if (chpid > 0)
|
||||
waitpid(chpid, NULL, 0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue