![Скрипт оболочки для удаления лаунчера Unity (если он есть в Ubuntu 14.04) и/или панели Xfce (в случае Xubuntu)](https://rvso.com/image/1127625/%D0%A1%D0%BA%D1%80%D0%B8%D0%BF%D1%82%20%D0%BE%D0%B1%D0%BE%D0%BB%D0%BE%D1%87%D0%BA%D0%B8%20%D0%B4%D0%BB%D1%8F%20%D1%83%D0%B4%D0%B0%D0%BB%D0%B5%D0%BD%D0%B8%D1%8F%20%D0%BB%D0%B0%D1%83%D0%BD%D1%87%D0%B5%D1%80%D0%B0%20Unity%20(%D0%B5%D1%81%D0%BB%D0%B8%20%D0%BE%D0%BD%20%D0%B5%D1%81%D1%82%D1%8C%20%D0%B2%20Ubuntu%2014.04)%20%D0%B8%2F%D0%B8%D0%BB%D0%B8%20%D0%BF%D0%B0%D0%BD%D0%B5%D0%BB%D0%B8%20Xfce%20(%D0%B2%20%D1%81%D0%BB%D1%83%D1%87%D0%B0%D0%B5%20Xubuntu).png)
Просто хочу, чтобы скрипт оболочки удалил лаунчер Unity (если он есть в Ubuntu 14.04) и/или панель Xfce (в случае Xubuntu).
Если у кого-то есть идеи по этому поводу, пожалуйста, дайте мне знать.
Спасибо
решение1
Обновлять:
Чтобы полностью удалить лаунчер на время выполнения скрипта, я бы отключил плагин Unity Compiz.
У нас есть такой сценарийФлажок, который я для удобства вставляю сюда:
#!/usr/bin/env python3
# This file is part of Checkbox.
#
# Copyright 2014-2015 Canonical Ltd.
# Written by:
# Daniel Manrique <[email protected]>
# Sylvain Pineau <[email protected]>
#
# Checkbox is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3,
# as published by the Free Software Foundation.
#
# Checkbox is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Checkbox. If not, see <http://www.gnu.org/licenses/>.
"""
manage_compiz_plugin
====================
This script allows enabling or disabling compiz plugins using
gsettings. Changes take effect on the fly.
"""
from gettext import gettext as _
import argparse
import gettext
import os
import sys
import subprocess
import time
PATH="org.compiz.core:/org/compiz/profiles/unity/plugins/core/"
KEY="active-plugins"
gettext.textdomain("2013.com.canonical.certification.checkbox")
gettext.bindtextdomain("2013.com.canonical.certification.checkbox",
os.getenv("CHECKBOX_PROVIDER_LOCALE_DIR", None))
plugins = eval(subprocess.check_output(["gsettings", "get", PATH, KEY]))
parser = argparse.ArgumentParser(description=_("enable/disable compiz plugins"),
epilog=_("Available plugins: {}").format(plugins))
parser.add_argument("plugin", type=str, help=_('Name of plugin to control'))
parser.add_argument("action", type=str, choices=['enable', 'disable'],
help=_("What to do with the plugin"))
args = parser.parse_args()
if args.action == 'enable':
if args.plugin in plugins:
raise SystemExit(_("Plugin {} already enabled").format(args.plugin))
plugins.append(args.plugin)
else:
if args.plugin not in plugins:
raise SystemExit(_("Plugin {} doesn't exist").format(args.plugin))
plugins.remove(args.plugin)
subprocess.call(["gsettings", "set", PATH, KEY, str(plugins)])
time.sleep(3)
Чтобы отключить плагин Unity:
./manage_compiz_plugin unityshell disable
Чтобы восстановить его:
./manage_compiz_plugin unityshell enable
Первая версия(используя автоматическое скрытие):
Чтобы скрыть лаунчер Unity, используйте следующие команды:
dconf write /org/compiz/profiles/unity/plugins/unityshell/launcher-hide-mode 1
dconf write /org/compiz/profiles/unity/plugins/unityshell/edge-responsiveness 0
Чтобы восстановить его, просто используйте:
dconf write /org/compiz/profiles/unity/plugins/unityshell/launcher-hide-mode 0
dconf write /org/compiz/profiles/unity/plugins/unityshell/edge-responsiveness 2
решение2
Если вы ищете скрипт для перекомпиляции Unity без лаунчера, то это именно то, что вам нужно: Компиляция Unity без лаунчера