Skip to content

Commit

Permalink
Added menu position with Qubes Tools to XFCE Menu
Browse files Browse the repository at this point in the history
Added a menu directory with Qubes tools (to make them easier to find)
and also adds Qubes tools to XFCE settings manager
  • Loading branch information
marmarta committed May 20, 2019
1 parent af555fa commit d26b693
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 6 deletions.
2 changes: 1 addition & 1 deletion qubes-backup-restore.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Terminal=false
Name=Restore Backup
GenericName=Restore Backup
StartupNotify=false
Categories=System;
Categories=Settings;X-XFCE-SettingsDialog
2 changes: 1 addition & 1 deletion qubes-backup.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Terminal=false
Name=Backup Qubes
GenericName=Backup Qubes
StartupNotify=false
Categories=System;
Categories=Settings;X-XFCE-SettingsDialog
2 changes: 1 addition & 1 deletion qubes-global-settings.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Terminal=false
Name=Qubes Global Settings
GenericName=Qubes Global Settings
StartupNotify=false
Categories=System;
Categories=Settings;X-XFCE-SettingsDialog
2 changes: 1 addition & 1 deletion qubes-qube-manager.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Terminal=false
Name=Qube Manager
GenericName=Qube Manager
StartupNotify=false
Categories=System;
Categories=Settings;X-XFCE-SettingsDialog
2 changes: 1 addition & 1 deletion qubes-template-manager.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Terminal=false
Name=Qubes Template Manager
GenericName=Qubes Template Manager
StartupNotify=false
Categories=System;
Categories=Settings;X-XFCE-SettingsDialog
6 changes: 6 additions & 0 deletions qubes-tools.directory
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Desktop Entry]
Type=Directory
Icon=qubes-manager

Name=Qubes Tools
GenericName=Qubes Tools
17 changes: 17 additions & 0 deletions qubes-tools.menu
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
"http://www.freedesktop.org/standards/menu-spec/menu-1.0.dtd">
<Menu>
<Name>Applications</Name>
<Menu>
<Name>Qubes Tools</Name>
<Directory>qubes-tools.directory</Directory>
<Include>
<Filename>qubes-vm-create.desktop</Filename>
<Filename>qubes-backup.desktop</Filename>
<Filename>qubes-backup-restore.desktop</Filename>
<Filename>qubes-global-settings.desktop</Filename>
<Filename>qubes-qube-manager.desktop</Filename>
<Filename>qubes-template-manager.desktop</Filename>
</Include>
</Menu>
</Menu>
2 changes: 1 addition & 1 deletion qubes-vm-create.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ Terminal=false
Name=Create Qubes VM
GenericName=Create Qubes VM
StartupNotify=false
Categories=System;X-Xfce-Toplevel;
Categories=Settings;X-XFCE-SettingsDialog
8 changes: 8 additions & 0 deletions rpm_spec/qmgr.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ cp qubes-backup-restore.desktop $RPM_BUILD_ROOT/usr/share/applications/
cp qubes-qube-manager.desktop $RPM_BUILD_ROOT/usr/share/applications/
cp qubes-template-manager.desktop $RPM_BUILD_ROOT/usr/share/applications/

mkdir -p $RPM_BUILD_ROOT/usr/share/desktop-directories/
cp qubes-tools.directory $RPM_BUILD_ROOT/usr/share/desktop-directories/

mkdir -p $RPM_BUILD_ROOT/etc/xdg/menus/applications-merged/
cp qubes-tools.menu $RPM_BUILD_ROOT/etc/xdg/menus/applications-merged/

%post
update-desktop-database &> /dev/null || :

Expand Down Expand Up @@ -136,6 +142,8 @@ rm -rf $RPM_BUILD_ROOT
/usr/share/applications/qubes-backup-restore.desktop
/usr/share/applications/qubes-qube-manager.desktop
/usr/share/applications/qubes-template-manager.desktop
/usr/share/desktop-directories/qubes-tools.directory
/etc/xdg/menus/applications-merged/qubes-tools.menu

%changelog
@CHANGELOG@

0 comments on commit d26b693

Please sign in to comment.