Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pr/177'
Browse files Browse the repository at this point in the history
* origin/pr/177:
  Added menu position with Qubes Tools to XFCE Menu
  • Loading branch information
marmarek committed Aug 28, 2019
2 parents c32d63d + d26b693 commit 1ced452
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 @@ -52,6 +52,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 @@ -140,6 +146,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 1ced452

Please sign in to comment.