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 (-39 / +2 lines)
Lines 1834-1878 Link Here
1834
}
1834
}
1835
1835
1836
xdg()
1836
xdg()
1837
{   # http://standards.freedesktop.org
1837
{
1838
    UDD=''
1838
    /bin/true
1839
    for BIN_DIR in `pathdirs`; do
1840
	test -x ${BIN_DIR}/update-desktop-database || continue
1841
	UDD=${BIN_DIR}/update-desktop-database; break
1842
    done
1843
    
1844
    # http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html
1845
    if test "$UDD"; then
1846
	for ICON_DIR in `echo ${XDG_DATA_DIRS}:/usr/local/share:/usr/share|tr : '\012'|sed -e '/^$/d;s:$:/icons/hicolor:'` /usr/share/pixmaps/hicolor; do
1847
	    test -d ${ICON_DIR} && break
1848
	done
1849
1850
	if   test ! -d ${ICON_DIR}; then echo "Could not find icon installation directory, icons not installed." >&2
1851
	elif test ! -w ${ICON_DIR}; then echo "Directory \"${ICON_DIR}\" not writable by user \"${USER}\", icons not installed." >&2
1852
	else
1853
	    for RESOLUTION in 48x48 32x32 22x22; do
1854
		TO_DIR=${ICON_DIR}/${RESOLUTION}/apps
1855
		test -d ${TO_DIR} && test -w ${TO_DIR} && cp $cpv $share_dir/images/opera_${RESOLUTION}.png ${TO_DIR}/opera.png
1856
	    done
1857
	fi
1858
	
1859
	for SHORTCUT_DIR in ${XDG_DATA_HOME}/applications /usr/local/share/applications /usr/share/applications; do
1860
	    test -d ${SHORTCUT_DIR} && break;
1861
	done
1862
	
1863
	if   test ! -d ${SHORTCUT_DIR}; then echo "Could not find shortcut installation directory, desktop entry not installed." >&2; return
1864
	elif test ! -w ${SHORTCUT_DIR}; then echo "Directory \"${SHORTCUT_DIR}\" not writable by user \"${USER}\", desktop entry not installed." >&2; return
1865
	fi
1866
	generate_desktop ${SHORTCUT_DIR} xdg
1867
	${UDD}
1868
    else
1869
	icons
1870
	gnome
1871
	kde 3
1872
	kde 2
1873
	kde1
1874
	mandrake
1875
    fi
1876
}
1839
}
1877
1840
1878
# These are the only variables the needs to be changed
1841
# These are the only variables the needs to be changed

Return to bug 122036