Skip to content

Commit 416e11a

Browse files
authored
Merge pull request kevoreilly#2966 from PCSS-PSNC/feature/xdg-open-linux-package
Add xdg-open package for generic graphical sample detonation on Linux
2 parents 35a362e + 69042b4 commit 416e11a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env python
2+
3+
from lib.core.packages import Package
4+
5+
6+
class Xdg_open(Package):
7+
"""Start file with xdg-open"""
8+
9+
summary = "Run via xdg-open"
10+
description = "Generic package that uses xdg-open to run sample"
11+
12+
def prepare(self):
13+
self.args = [self.target] + self.args
14+
self.target = "/usr/bin/xdg-open"

0 commit comments

Comments
 (0)