mirror of
https://github.com/bakkeby/st-flexipatch.git
synced 2026-03-31 08:17:36 +09:00
14 lines
207 B
C
14 lines
207 B
C
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);
|
|
}
|