mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-23 22:42:14 +08:00
Fix up MimeType entries in .desktop instructions
We aso had a sed in the Makefile that changes text/html. I changed that to only look at the top 20 lines of each page.
This commit is contained in:
parent
b205497008
commit
28909b7239
4
Makefile
4
Makefile
@ -129,7 +129,7 @@ $(BASEDIR)/index.html: $(RENDERTMP)/$(BLFSHTML) version
|
|||||||
tidy -config tidy.conf $$filename; \
|
tidy -config tidy.conf $$filename; \
|
||||||
true; \
|
true; \
|
||||||
bash obfuscate.sh $$filename; \
|
bash obfuscate.sh $$filename; \
|
||||||
sed -i -e "s@text/html@application/xhtml+xml@g" $$filename; \
|
sed -i -e "1,20s@text/html@application/xhtml+xml@g" $$filename; \
|
||||||
done;
|
done;
|
||||||
|
|
||||||
nochunks: $(BASEDIR)/$(NOCHUNKS_OUTPUT)
|
nochunks: $(BASEDIR)/$(NOCHUNKS_OUTPUT)
|
||||||
@ -144,7 +144,7 @@ $(BASEDIR)/$(NOCHUNKS_OUTPUT): $(RENDERTMP)/$(BLFSHTML) version
|
|||||||
@echo "Running Tidy and obfuscate.sh on non-chunked XHTML..."
|
@echo "Running Tidy and obfuscate.sh on non-chunked XHTML..."
|
||||||
$(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || true
|
$(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || true
|
||||||
$(Q)bash obfuscate.sh $(BASEDIR)/$(NOCHUNKS_OUTPUT)
|
$(Q)bash obfuscate.sh $(BASEDIR)/$(NOCHUNKS_OUTPUT)
|
||||||
$(Q)sed -i -e "s@text/html@application/xhtml+xml@g" $(BASEDIR)/$(NOCHUNKS_OUTPUT)
|
$(Q)sed -i -e "1,20s@text/html@application/xhtml+xml@g" $(BASEDIR)/$(NOCHUNKS_OUTPUT)
|
||||||
|
|
||||||
tmpdir: $(RENDERTMP)
|
tmpdir: $(RENDERTMP)
|
||||||
$(RENDERTMP):
|
$(RENDERTMP):
|
||||||
|
@ -502,7 +502,11 @@ export MOZBUILD_STATE_PATH=${PWD}/mozbuild &&
|
|||||||
<screen role="root"><userinput>mkdir -pv /usr/share/applications &&
|
<screen role="root"><userinput>mkdir -pv /usr/share/applications &&
|
||||||
mkdir -pv /usr/share/pixmaps &&
|
mkdir -pv /usr/share/pixmaps &&
|
||||||
|
|
||||||
cat > /usr/share/applications/firefox.desktop << "EOF" &&
|
MIMETYPE="text/xml;text/mml;text/html;" &&
|
||||||
|
MIMETYPE="$MIMETYPE;application/xhtml+xml;application/vnd.mozilla.xul+xml" &&
|
||||||
|
MIMETYPE="$MIMETYPE;x-scheme-handler/http;x-scheme-handler/https; &&
|
||||||
|
|
||||||
|
cat > /usr/share/applications/firefox.desktop << EOF &&
|
||||||
<literal>[Desktop Entry]
|
<literal>[Desktop Entry]
|
||||||
Encoding=UTF-8
|
Encoding=UTF-8
|
||||||
Name=Firefox Web Browser
|
Name=Firefox Web Browser
|
||||||
@ -513,10 +517,12 @@ Terminal=false
|
|||||||
Type=Application
|
Type=Application
|
||||||
Icon=firefox
|
Icon=firefox
|
||||||
Categories=GNOME;GTK;Network;WebBrowser;
|
Categories=GNOME;GTK;Network;WebBrowser;
|
||||||
MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
|
MimeType=$MIMETYPE
|
||||||
StartupNotify=true</literal>
|
StartupNotify=true</literal>
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
unset MIMETYPE &&
|
||||||
|
|
||||||
ln -sfv /usr/lib/firefox/browser/chrome/icons/default/default128.png \
|
ln -sfv /usr/lib/firefox/browser/chrome/icons/default/default128.png \
|
||||||
/usr/share/pixmaps/firefox.png</userinput></screen>
|
/usr/share/pixmaps/firefox.png</userinput></screen>
|
||||||
|
|
||||||
|
@ -514,7 +514,11 @@ export MOZBUILD_STATE_PATH=${PWD}/mozbuild &&
|
|||||||
<screen role="root"><userinput>mkdir -pv /usr/share/applications &&
|
<screen role="root"><userinput>mkdir -pv /usr/share/applications &&
|
||||||
mkdir -pv /usr/share/pixmaps &&
|
mkdir -pv /usr/share/pixmaps &&
|
||||||
|
|
||||||
cat > /usr/share/applications/firefox.desktop << "EOF" &&
|
MIMETYPE="text/xml;text/mml;text/html;" &&
|
||||||
|
MIMETYPE="$MIMETYPE;application/xhtml+xml;application/vnd.mozilla.xul+xml" &&
|
||||||
|
MIMETYPE="$MIMETYPE;x-scheme-handler/http;x-scheme-handler/https; &&
|
||||||
|
|
||||||
|
cat > /usr/share/applications/firefox.desktop << EOF &&
|
||||||
<literal>[Desktop Entry]
|
<literal>[Desktop Entry]
|
||||||
Encoding=UTF-8
|
Encoding=UTF-8
|
||||||
Name=Firefox Web Browser
|
Name=Firefox Web Browser
|
||||||
@ -525,10 +529,12 @@ Terminal=false
|
|||||||
Type=Application
|
Type=Application
|
||||||
Icon=firefox
|
Icon=firefox
|
||||||
Categories=GNOME;GTK;Network;WebBrowser;
|
Categories=GNOME;GTK;Network;WebBrowser;
|
||||||
MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
|
MimeType=$MIMETYPE
|
||||||
StartupNotify=true</literal>
|
StartupNotify=true</literal>
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
unset MIMETYPE &&
|
||||||
|
|
||||||
ln -sfv /usr/lib/firefox/browser/chrome/icons/default/default128.png \
|
ln -sfv /usr/lib/firefox/browser/chrome/icons/default/default128.png \
|
||||||
/usr/share/pixmaps/firefox.png</userinput></screen>
|
/usr/share/pixmaps/firefox.png</userinput></screen>
|
||||||
|
|
||||||
|
@ -359,10 +359,7 @@ export MACH_USE_SYSTEM_PYTHON=1 &&
|
|||||||
|
|
||||||
<screen role="root"><userinput>mkdir -pv /usr/share/{applications,pixmaps} &&
|
<screen role="root"><userinput>mkdir -pv /usr/share/{applications,pixmaps} &&
|
||||||
|
|
||||||
MIMETYPE="text/html;text/xml;application/xhtml+xml;application/xml"
|
cat > /usr/share/applications/thunderbird.desktop << "EOF" &&
|
||||||
MIMETYPE="$MIMETYPE;application/rss+xml;x-scheme-handler/mailto;"
|
|
||||||
|
|
||||||
cat > /usr/share/applications/thunderbird.desktop << EOF &&
|
|
||||||
<literal>[Desktop Entry]
|
<literal>[Desktop Entry]
|
||||||
Name=Thunderbird Mail
|
Name=Thunderbird Mail
|
||||||
Comment=Send and receive mail with Thunderbird
|
Comment=Send and receive mail with Thunderbird
|
||||||
@ -372,12 +369,10 @@ Terminal=false
|
|||||||
Type=Application
|
Type=Application
|
||||||
Icon=thunderbird
|
Icon=thunderbird
|
||||||
Categories=Network;Email;
|
Categories=Network;Email;
|
||||||
MimeType=$MIMETYPE
|
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;x-scheme-handler/mailto;
|
||||||
StartupNotify=true</literal>
|
StartupNotify=true</literal>
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
unset MIMETYPE
|
|
||||||
|
|
||||||
ln -sfv /usr/lib/thunderbird/chrome/icons/default/default256.png \
|
ln -sfv /usr/lib/thunderbird/chrome/icons/default/default256.png \
|
||||||
/usr/share/pixmaps/thunderbird.png</userinput></screen>
|
/usr/share/pixmaps/thunderbird.png</userinput></screen>
|
||||||
</sect3>
|
</sect3>
|
||||||
|
Loading…
Reference in New Issue
Block a user