Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 122036 | Differences between
and this patch

Collapse All | Expand All

(-)install.sh (-28 / +2 lines)
Lines 1778-1811 Link Here
1778
}
1778
}
1779
1779
1780
xdg()
1780
xdg()
1781
{   # http://standards.freedesktop.org
1781
{
1782
    if update-desktop-database --help >/dev/null 2>&1; then
1782
    /bin/true
1783
1784
	for ICON_DIR in ${XDG_DATA_DIRS}/icons/hicolor /usr/share/pixmaps/hicolor; do test -d ${ICON_DIR} && break; done
1785
1786
	if   test ! -d ${ICON_DIR}; then echo "Could not find icon installation directory, icons not installed." >&2
1787
	elif test ! -w ${ICON_DIR}; then echo "Directory \"${ICON_DIR}\" not writable by user \"${USER}\", icons not installed." >&2
1788
	else
1789
	    test -d ${ICON_DIR}/48x48/apps && test -w ${ICON_DIR}/48x48/apps && cp $cpv $share_dir/images/opera_48x48.png $DIR_HI/48x48/apps/opera.png
1790
	    test -d ${ICON_DIR}/32x32/apps && test -w ${ICON_DIR}/32x32/apps && cp $cpv $share_dir/images/opera_32x32.png $DIR_HI/32x32/apps/opera.png
1791
	    test -d ${ICON_DIR}/22x22/apps && test -w ${ICON_DIR}/22x22/apps && cp $cpv $share_dir/images/opera_22x22.png $DIR_HI/22x22/apps/opera.png
1792
	fi
1793
1794
	for SHORTCUT_DIR in ${XDG_DATA_HOME}/applications /usr/local/share/applications /usr/share/applications; do test -d ${SHORTCUT_DIR} && break; done
1795
1796
	if   test ! -d ${SHORTCUT_DIR}; then echo "Could not find shortcut installation directory, desktop entry not installed." >&2; return
1797
	elif test ! -w ${SHORTCUT_DIR}; then echo "Directory \"${SHORTCUT_DIR}\" not writable by user \"${USER}\", desktop entry not installed." >&2; return
1798
	fi
1799
	generate_desktop ${SHORTCUT_DIR} xdg
1800
	update-desktop-database
1801
    else
1802
	icons
1803
	gnome
1804
	kde 3
1805
	kde 2
1806
	kde1
1807
	mandrake
1808
    fi
1809
}
1783
}
1810
1784
1811
# These are the only variables the needs to be changed
1785
# These are the only variables the needs to be changed

Return to bug 122036