Skip to content

Commit

Permalink
#880: add xpraconfig mimetype
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@9571 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jun 2, 2015
1 parent b642f27 commit 6866d6b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions debian/xpra.install
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ usr/lib/*/*/xpra
usr/bin/xpra
usr/bin/xpra_launcher
usr/share/applications/xpra_launcher.desktop
usr/share/mime/packages/application-x-xpraconfig.xml
usr/share/xpra/icons/*.png
usr/share/xpra/www/*
etc/xpra/xorg.conf
Expand Down
3 changes: 3 additions & 0 deletions rpmbuild/xpra.spec
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/man/man1/xpra*
%{_datadir}/applications/xpra_launcher.desktop
%{_datadir}/applications/xpra.desktop
%{_datadir}/mime/packages/application-x-xpraconfig.xml
%{_datadir}/appdata/xpra.appdata.xml
%{_datadir}/icons/xpra.png
/usr/lib/cups/backend/xpraforwarder
Expand Down Expand Up @@ -285,12 +286,14 @@ popd


%post
/usr/bin/update-mime-database &> /dev/null || :
/usr/bin/update-desktop-database &> /dev/null || :
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
/bin/chmod 700 /usr/lib/cups/backend/xpraforwarder


%postun
/usr/bin/update-mime-database &> /dev/null || :
/usr/bin/update-desktop-database &> /dev/null || :
if [ $1 -eq 0 ] ; then
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
Expand Down
1 change: 1 addition & 0 deletions src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -1552,6 +1552,7 @@ def add_keywords(path_dirs=[], inc_dirs=[], lib_dirs=[], libs=[], noref=True, no
add_data_files("share/xpra", ["README", "COPYING"])
add_data_files("share/xpra/icons", glob.glob("icons/*"))
add_data_files("share/applications", ["xdg/xpra_launcher.desktop", "xdg/xpra.desktop"])
add_data_files("share/mime/packages", ["xdg/application-x-xpraconfig.xml"])
add_data_files("share/icons", ["xdg/xpra.png"])
add_data_files("share/appdata", ["xdg/xpra.appdata.xml"])
html5_dir = "share/xpra/www"
Expand Down
7 changes: 7 additions & 0 deletions src/xdg/application-x-xpraconfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-xpraconfig">
<comment>Xpra Session File</comment>
<glob pattern="*.xpra"/>
</mime-type>
</mime-info>
4 changes: 2 additions & 2 deletions src/xdg/xpra_launcher.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
Name=Xpra Launcher
Comment=Connect to an Xpra session
TryExec=xpra_launcher
Exec=xpra_launcher
Exec=xpra_launcher %f
Icon=xpra
Terminal=false
Type=Application
StartupNotify=false
Categories=Network;
MimeType=text/x-xpraconfig;
MimeType=application/x-xpraconfig;

0 comments on commit 6866d6b

Please sign in to comment.