Commit 4b847dd87888b59a80674d6635136b01987c9d1d
1 parent
41a0c7d5
Exists in
master
and in
3 other branches
Adding custom mime-type for pw3270 session settings file
Showing
4 changed files
with
23 additions
and
1 deletions
Show diff stats
branding/Makefile.in
| ... | ... | @@ -115,6 +115,9 @@ $(DESTDIR)$(datarootdir)/pixmaps/%.png: \ |
| 115 | 115 | @$(INSTALL_DATA) $< $@ |
| 116 | 116 | |
| 117 | 117 | install: \ |
| 118 | + install-@OSNAME@ | |
| 119 | + | |
| 120 | +install-linux: \ | |
| 118 | 121 | $(DESTDIR)$(datarootdir)/$(PRODUCT_NAME)/$(PRODUCT_NAME).png \ |
| 119 | 122 | $(DESTDIR)$(datarootdir)/pixmaps/$(PRODUCT_NAME).png \ |
| 120 | 123 | $(DESTDIR)$(datarootdir)/$(PRODUCT_NAME)/$(PRODUCT_NAME)-logo.png |
| ... | ... | @@ -129,4 +132,15 @@ install: \ |
| 129 | 132 | --dir $(DESTDIR)$(datarootdir)/applications \ |
| 130 | 133 | $(PRODUCT_NAME).desktop |
| 131 | 134 | |
| 135 | + @$(MKDIR) $(DESTDIR)/usr/share/mime/application | |
| 136 | + | |
| 137 | + @$(INSTALL_DATA) \ | |
| 138 | + mime.xml \ | |
| 139 | + $(DESTDIR)/usr/share/mime/application/x-$(PRODUCT_NAME).xml | |
| 140 | + | |
| 141 | + | |
| 142 | +install-windows: \ | |
| 143 | + $(DESTDIR)$(datarootdir)/$(PRODUCT_NAME)/$(PRODUCT_NAME).png \ | |
| 144 | + $(DESTDIR)$(datarootdir)/$(PRODUCT_NAME)/$(PRODUCT_NAME)-logo.png | |
| 145 | + | |
| 132 | 146 | ... | ... |
branding/launcher.desktop.in
| ... | ... | @@ -10,7 +10,7 @@ Terminal=false |
| 10 | 10 | Type=Application |
| 11 | 11 | StartupNotify=true |
| 12 | 12 | |
| 13 | -MimeType=x-scheme-handler/tn3270s;x-scheme-handler/tn3270; | |
| 13 | +MimeType=x-scheme-handler/tn3270s;x-scheme-handler/tn3270;application/x-@PRODUCT_NAME@; | |
| 14 | 14 | |
| 15 | 15 | Actions=gnomeui;classicalui |
| 16 | 16 | ... | ... |
| ... | ... | @@ -0,0 +1,7 @@ |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<mime-type xmlns="http://www.freedesktop.org/standards/shared-mime-info" type="application/x-@PRODUCT_NAME@"> | |
| 3 | + <comment>@PRODUCT_NAME@ Session Properties</comment> | |
| 4 | + <comment xml:lang="pt_BR">Configuração de sessão @PRODUCT_NAME@</comment> | |
| 5 | + <generic-icon name="@PRODUCT_NAME@"/> | |
| 6 | + <glob pattern="*.3270"/> | |
| 7 | +</mime-type> | ... | ... |
configure.ac
| ... | ... | @@ -234,6 +234,7 @@ AC_CONFIG_FILES(locale/Makefile) |
| 234 | 234 | |
| 235 | 235 | AC_CONFIG_FILES(branding/Makefile) |
| 236 | 236 | AC_CONFIG_FILES(branding/launcher.desktop) |
| 237 | +AC_CONFIG_FILES(branding/mime.xml) | |
| 237 | 238 | |
| 238 | 239 | dnl --------------------------------------------------------------------------- |
| 239 | 240 | dnl Output the generated config.status script. | ... | ... |