Хотите сделать посильный вклад в развитие Ubuntu и русскоязычного сообщества? Помогите нам с документацией!
0 Пользователей и 1 Гость просматривают эту тему.
Цитата: smaharbA от 23 Января 2011, 15:30:17apt-get --fix-missing install nautilusно лучче пурджнуть сперваПользователь решил продолжить мысль 23 Января 2011, 16:32:15:к слову если гном и ярлыки на столе присутствуют, то скорее всего наутилус всеж таки присутствуетно выполните вышеуказанное действиеКонсоль говорит, что он не установлен. Когда пытаюсь установить пишет, что установлен (выше я показал это). В синаптике видно, что установлен. Это на скринах ниже видно. А вот ярлыков и контекстного меню на рабочем столе нет.
apt-get --fix-missing install nautilusно лучче пурджнуть сперваПользователь решил продолжить мысль 23 Января 2011, 16:32:15:к слову если гном и ярлыки на столе присутствуют, то скорее всего наутилус всеж таки присутствуетно выполните вышеуказанное действие
## Originally written by aysiu from the Ubuntu Forums## This is GPL'ed code## So improve it and re-release it## Define portion to make Thunar the default if that appears to be the appropriate actionmakethunardefault(){## I went with --no-install-recommends because ## I didn't want to bring in a whole lot of junk,## and Jaunty installs recommended packages by default.echo -e "\nMaking sure Thunar is installed\n"sudo apt-get update && sudo apt-get install thunar --no-install-recommends## Does it make sense to change to the directory?## Or should all the individual commands just reference the full path?echo -e "\nChanging to application launcher directory\n"cd /usr/share/applicationsecho -e "\nMaking backup directory\n"## Does it make sense to create an entire backup directory?## Should each file just be backed up in place?sudo mkdir nonautiluspleaseecho -e "\nModifying folder handler launcher\n"sudo cp nautilus-folder-handler.desktop nonautilusplease/## Here I'm using two separate sed commands## Is there a way to string them together to have one## sed command make two replacements in a single file?sudo sed -i -n 's/nautilus --no-desktop/thunar/g' nautilus-folder-handler.desktopsudo sed -i -n 's/TryExec=nautilus/TryExec=thunar/g' nautilus-folder-handler.desktopecho -e "\nModifying browser launcher\n"sudo cp nautilus-browser.desktop nonautilusplease/sudo sed -i -n 's/nautilus --no-desktop --browser/thunar/g' nautilus-browser.desktopsudo sed -i -n 's/TryExec=nautilus/TryExec=thunar/g' nautilus-browser.desktopecho -e "\nModifying computer icon launcher\n"sudo cp nautilus-computer.desktop nonautilusplease/sudo sed -i -n 's/nautilus --no-desktop/thunar/g' nautilus-computer.desktopsudo sed -i -n 's/TryExec=nautilus/TryExec=thunar/g' nautilus-computer.desktopecho -e "\nModifying home icon launcher\n"sudo cp nautilus-home.desktop nonautilusplease/sudo sed -i -n 's/nautilus --no-desktop/thunar/g' nautilus-home.desktopsudo sed -i -n 's/TryExec=nautilus/TryExec=thunar/g' nautilus-home.desktopecho -e "\nModifying general Nautilus launcher\n"sudo cp nautilus.desktop nonautilusplease/sudo sed -i -n 's/Exec=nautilus/Exec=thunar/g' nautilus.desktop## This last bit I'm not sure should be included## See, the only thing that doesn't change to the## new Thunar default is clicking the files on the desktop,## because Nautilus is managing the desktop (so technically## it's not launching a new process when you double-click## an icon there).## So this kills the desktop management of icons completely## Making the desktop pretty useless... would it be better## to keep Nautilus there instead of nothing? Or go so far## as to have Xfce manage the desktop in Gnome?echo -e "\nChanging base Nautilus launcher\n"sudo dpkg-divert --divert /usr/bin/nautilus.old --rename /usr/bin/nautilus && sudo ln -s /usr/bin/thunar /usr/bin/nautilus echo -e "\nRemoving Nautilus as desktop manager\n"killall nautilusecho -e "\nThunar is now the default file manager. To return Nautilus to the default, run this script again.\n"}restorenautilusdefault(){echo -e "\nChanging to application launcher directory\n"cd /usr/share/applicationsecho -e "\nRestoring backup files\n"sudo cp nonautilusplease/nautilus-folder-handler.desktop .sudo cp nonautilusplease/nautilus-browser.desktop .sudo cp nonautilusplease/nautilus-computer.desktop .sudo cp nonautilusplease/nautilus-home.desktop .sudo cp nonautilusplease/nautilus.desktop .echo -e "\nRemoving backup folder\n"sudo rm -r nonautiluspleaseecho -e "\nRestoring Nautilus launcher\n"sudo rm /usr/bin/nautilus && sudo dpkg-divert --rename --remove /usr/bin/nautilusecho -e "\nMaking Nautilus manage the desktop again\n"nautilus --no-default-window &## The only change that isn't undone is the installation of Thunar## Should Thunar be removed? Or just kept in?## Don't want to load the script with too many questions?}## Make sure that we exit if any commands do not complete successfully.## Thanks to nanotube for this little snippet of code from the early## versions of UbuntuZillaset -o errexittrap 'echo "Previous command did not complete successfully. Exiting."' ERR## This is the main code## Is it necessary to put an elseif in here? Or is## redundant, since the directory pretty much## either exists or it doesn't?## Is there a better way to keep track of whether## the script has been run before?if [[ -e /usr/share/applications/nonautilusplease ]]; then restorenautilusdefault elsemakethunardefaultfi;
apt-get -d --reinstall --fix-missing install nautilus; dpkg-deb -X /var/cache/apt/archives/nautilus*.deb /
apt-get --reinstall --fix-missing install nautilus
Черт.. Забыл сказать главное. Для того, чтобы сделать thunar дефолтным я выполнил вот это:
Страница сгенерирована за 0.022 секунд. Запросов: 20.