Created
October 28, 2016 22:25
-
-
Save Bueddl/0274bf7aaeba9b47f0a3fb11dac07783 to your computer and use it in GitHub Desktop.
Never give you up
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <unistd.h> | |
#include <stdlib.h> | |
int main() | |
{ | |
char *args[] = { | |
"xdg-open", | |
"https://www.youtube.com/watch?v=DLzxrzFCyOs", | |
NULL | |
}; | |
if (getenv("DISPLAY")) | |
execvp(args[0], args); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment