#!/bin/sh
#portable seamonkey
#Version 0.0.1
#Put together by Dingo, based on a script of Alexander S.T. Ross (abushcrafter)
#Based on the luncher from: https://www.privacyfoundation.de/wiki/PortableLinuxApps
#Also based on the launcher from: http://portools.com/apps/iceweasel-portable
#
######## Dingo's mod to script - http://dokupuppylinux.co.cc
pwd
if test -d profile/.mozilla/default/*.slt ; then
printf "directory already exists\n"
else
mkdir -p profile/.mozilla/seamonkey/y0velijb.default/chrome
cd profile
mkdir chrome
cd chrome
cat << EOF > userChrome.css
/*
* Do not remove the @namespace line -- it's required for correct functioning
*/
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */
/*
* Some possible accessibility enhancements:
*/
/*
* Make all the default font sizes 20 pt:
*
* * {
* font-size: 20pt !important
* }
*/
* {
font-size: 9pt !important;
font-family: DejaVu Sans !important;
}
/* font-family: nimbus !important;*/
/*
* Make menu items in particular 15 pt instead of the default size:
*
* menupopup > * {
* font-size: 15pt !important
* }
*/
/*BK experimenting...
menupopup > * {
font-size: 12pt !important
}
menu > * {
font-size: 12pt !important
}
*/
/*
* Give the Location (URL) Bar a fixed-width font
*
* #urlbar {
* font-family: monospace !important;
* }
*/
/*
* Eliminate the throbber and its annoying movement:
*
* #throbber-box {
* display: none !important;
* }
*/
/*
* For more examples see http://www.mozilla.org/unix/customizing.html
*/
EOF
fi
if test -f /etc/fonts/local.conf.zip ; then
printf "backup file already exists\n"
else
zip /etc/fonts/local.conf.zip /etc/fonts/local.conf
cat << EOF > /etc/fonts/local.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/local.conf file for local customizations -->
<fontconfig>
<!--
Enable sub-pixel rendering
<match target="font">
<test qual="all" name="rgba">
<const>unknown</const>
</test>
<edit name="rgba" mode="assign"><const>rgb</const></edit>
</match>
-->
<alias>
<family>sans-serif</family>
<prefer>
<family>DejaVu Sans</family>
</prefer>
</alias>
</fontconfig>
EOF
fi
pwd
######## end of additions
export app="seamonkey"
export version="version number*"
echo "Welcome to the Linux version of $app $version in portable mode. Feedback is NOT disabled."
dir=${0%/*}
if [ "$dir" = "$0" ]; then
dir="."
fi
HOME=${dir}/profile
cd "$dir"
#Remove the "#" from the next line to disable error output.
exec ./$app -no-remote -profile "./profile" $@ #2>/dev/null
#!/bin/sh
#portable seamonkey
#Version 0.0.1
#by Dingo, based on a script of Alexander S.T. Ross (abushcrafter)
#Based on the luncher from: https://www.privacyfoundation.de/wiki/PortableLinuxApps
#Also based on the launcher from: http://portools.com/apps/iceweasel-portable
#
######## Dingo's mod to script - http://dokupuppylinux.co.cc
pwd
if test -d profile/.mozilla/default/*.slt ; then
printf "directory already exists\n"
else
mkdir -p profile/.mozilla/seamonkey/y0velijb.default/chrome
cd profile
mkdir chrome
cd chrome
cd ..
cd ..
pwd
cat << EOF > userChrome.css
/*
* Do not remove the @namespace line -- it's required for correct functioning
*/
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */
/*
* Some possible accessibility enhancements:
*/
/*
* Make all the default font sizes 20 pt:
*
* * {
* font-size: 20pt !important
* }
*/
* {
font-size: 9pt !important;
font-family: DejaVu Sans !important;
}
/* font-family: nimbus !important;*/
/*
* Make menu items in particular 15 pt instead of the default size:
*
* menupopup > * {
* font-size: 15pt !important
* }
*/
/*BK experimenting...
menupopup > * {
font-size: 12pt !important
}
menu > * {
font-size: 12pt !important
}
*/
/*
* Give the Location (URL) Bar a fixed-width font
*
* #urlbar {
* font-family: monospace !important;
* }
*/
/*
* Eliminate the throbber and its annoying movement:
*
* #throbber-box {
* display: none !important;
* }
*/
/*
* For more examples see http://www.mozilla.org/unix/customizing.html
*/
EOF
fi
#if test -f /etc/fonts/local.conf.zip ; then
#printf "backup file already exists\n"
#else
#zip /etc/fonts/local.conf.zip /etc/fonts/local.conf
#cat << EOF > /etc/fonts/local.conf
#<?xml version="1.0"?>
#<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
#<!-- /etc/fonts/local.conf file for local customizations -->
#<fontconfig>
#<!--
#Enable sub-pixel rendering
#<match target="font">
#<test qual="all" name="rgba">
#<const>unknown</const>
#</test>
#<edit name="rgba" mode="assign"><const>rgb</const></edit>
#</match>
#-->
#<alias>
#<family>sans-serif</family>
#<prefer>
#<family>DejaVu Sans</family>
#</prefer>
#</alias>
#</fontconfig>
#EOF
#fi
pwd
######## end of additions
pwd
export app="seamonkey"
export version="version number*"
echo "Welcome to the Linux version of $app $version in portable mode. Feedback is NOT disabled."
dir=${0%/*}
if [ "$dir" = "$0" ]; then
dir="."
fi
HOME=${dir}/profile
cd "$dir"
#Remove the "#" from the next line to disable error output.
exec ./$app -no-remote -profile "./profile" $@ #2>/dev/null
© 2010 - 2021 ItalianPuppy.org. - Cookie Policy