init
This commit is contained in:
13
st-flexipatch/patch/openselectedtext.c
Normal file
13
st-flexipatch/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);
|
||||
}
|
||||
Reference in New Issue
Block a user