We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17a53c3 commit 0946a5fCopy full SHA for 0946a5f
1 file changed
src/Objects/MacApplication.php
@@ -9,6 +9,25 @@ class MacApplication extends \SplFileInfo
9
{
10
use ShellTrait;
11
12
+ /**
13
+ * @return bool
14
+ */
15
+ public function isUserApp()
16
+ {
17
+ return preg_match('#/Users/([^/]+)/Applications#', $this->getPath());
18
+ }
19
+
20
21
22
23
+ public function isSystemApp()
24
25
+ return 0 === strpos($this->getPath(), '/System') || 0 === strpos($this->getPath(), '/Library');
26
27
28
29
+ * @return string|null
30
31
public function getCopyright()
32
33
return $this->getPlistValue('NSHumanReadableCopyright');
0 commit comments