Add opt-in autostart desktop entry for the tray applet
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
1451cf7d58
commit
a5e954e0ed
2 changed files with 18 additions and 0 deletions
9
packaging/enodia-sentinel-tray.desktop
Normal file
9
packaging/enodia-sentinel-tray.desktop
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Type=Application
|
||||||
|
Name=Enodia Sentinel Tray
|
||||||
|
Comment=Tray launcher for the Enodia Sentinel security agent
|
||||||
|
Exec=enodia-sentinel-tray
|
||||||
|
Icon=security-high
|
||||||
|
Terminal=false
|
||||||
|
Categories=System;Security;Utility;
|
||||||
|
X-GNOME-Autostart-enabled=true
|
||||||
|
|
@ -157,5 +157,14 @@ class TestSourceInstallPackaging(unittest.TestCase):
|
||||||
self.assertIn(phrase, guide)
|
self.assertIn(phrase, guide)
|
||||||
|
|
||||||
|
|
||||||
|
class TestTrayDesktopEntry(unittest.TestCase):
|
||||||
|
def test_desktop_file_launches_tray_entry_point(self):
|
||||||
|
text = _read("packaging/enodia-sentinel-tray.desktop")
|
||||||
|
self.assertIn("[Desktop Entry]", text)
|
||||||
|
self.assertIn("Type=Application", text)
|
||||||
|
self.assertIn("Exec=enodia-sentinel-tray", text)
|
||||||
|
self.assertRegex(text, r"(?m)^Name=.*Sentinel")
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue