Некоторые приложения не отображаются в Panel в Ubuntu 16.04
Наутилус, gedit, gvim, LibreOffice, Audacious и gimp не имеют меню приложений, поэтому я не могу найти файл, изменить и т. Д. Но с Google Brower, Firefox и Okular все в порядке.
Нет отображения строки меню:
Имеется строка меню:
Когда я выполню команду sudo service lightdm restart
эти приложения отображаются нормально. Я пишу команду в /etc/rc.local
а также ~/.profile
, но это бесполезно.
Проблема возникает после того, как я установил gvim.
Я выполняю эти команды для установки gvim:
tar xvf vim-7.4.tar.bz2
cd ./vim74/src
sudo apt-get install libncurses5-dev
sudo apt-get install libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev
./configure --enable-gui=gtk2 --prefix=/home/pmsl/DeveloperTools/Vim
make
sudo make install
Я пытаюсь переустановить ubuntu-desktop, unity, lightdm и удалить libncurses5-dev, libgnome2-dev, libgnomeui-dev, libgtk2.0-dev, libatk1.0-dev, libbonoboui2-dev, libcairo2-dev, libx11-dev, libxpm-dev и libxt-dev.
Я не могу найти проблему по /var/log/lightdm/lightdm.log
,
загрузочный компьютер lightdm.log:
[+0.03s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.26s] DEBUG: Starting Light Display Manager 1.18.1, UID=0 PID=1106
[+0.26s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.26s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-disable-log-backup.conf
[+0.26s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-greeter-wrapper.conf
[+0.26s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-guest-wrapper.conf
[+0.26s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-no-guest.conf
[+0.26s] DEBUG: [SeatDefaults] is now called [Seat:*], please update this configuration
[+0.26s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
[+0.26s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf
[+0.26s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-xserver-command.conf
[+0.26s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.26s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.26s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.26s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.26s] DEBUG: Registered seat module xlocal
[+0.26s] DEBUG: Registered seat module xremote
[+0.26s] DEBUG: Registered seat module unity
[+0.27s] DEBUG: Monitoring logind for seats
[+0.27s] DEBUG: New seat added from logind: seat0
[+0.27s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.27s] DEBUG: Seat seat0: Starting
[+0.27s] DEBUG: Seat seat0: Creating user session
[+0.27s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.27s] DEBUG: User /org/freedesktop/Accounts/User1000 added
[+0.97s] DEBUG: Seat seat0: Creating display server of type x
[+0.98s] DEBUG: Seat seat0: Plymouth is running on VT 1, but this is less than the configured minimum of 7 so not replacing it
[+0.98s] DEBUG: Quitting Plymouth
[+1.02s] DEBUG: Using VT 7
[+1.02s] DEBUG: Seat seat0: Starting local X display on VT 7
[+1.02s] DEBUG: DisplayServer x-0: Logging to /var/log/lightdm/x-0.log
[+1.02s] DEBUG: DisplayServer x-0: Writing X server authority to /var/run/lightdm/root/:0
[+1.02s] DEBUG: DisplayServer x-0: Launching X Server
[+1.02s] DEBUG: Launching process 1215: /usr/bin/X -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+1.02s] DEBUG: DisplayServer x-0: Waiting for ready signal from X server :0
[+1.02s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+1.02s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+2.65s] DEBUG: Got signal 10 from process 1215
[+2.65s] DEBUG: DisplayServer x-0: Got signal from X server :0
[+2.65s]
[Thread 0x7fffc3eef700 (LWP 5295) exited]DEBUG: DisplayServer x-0: Connecting to XServer :0
[+2.66s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+2.66s] DEBUG: Session pid=1442: Started with service 'lightdm-autologin', username 'pmsl'
[+2.70s] DEBUG: Session pid=1442: Authentication complete with return value 0: Success
[+2.70s] DEBUG: Seat seat0: Session authenticated, running command
[+2.70s]
[Thread 0x7fffc3eef700 (LWP 5295) exited]DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+2.70s] DEBUG: Session pid=1442: Running command /usr/sbin/lightdm-session gnome-session --session=ubuntu
[+2.70s] DEBUG: Creating shared data directory /var/lib/lightdm-data/pmsl
[+2.70s] DEBUG: Session pid=1442: Logging to .xsession-errors
[+2.84s] DEBUG: Activating VT 7
[+2.84s] DEBUG: Activating login1 session c1
[+2.84s] DEBUG: Seat seat0 changes active session to c1
[+2.84s] DEBUG: Session c1 is already active
перезапустите сервис lightdm.log:
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.18.1, UID=0 PID=3548
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-disable-log-backup.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-greeter-wrapper.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-guest-wrapper.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-no-guest.conf
[+0.00s] DEBUG: [SeatDefaults] is now called [Seat:*], please update this configuration
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-xserver-command.conf
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Registered seat module xlocal
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Registered seat module unity
[+0.01s] DEBUG: Monitoring logind for seats
[+0.01s] DEBUG: New seat added from logind: seat0
[+0.01s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.01s] DEBUG: Seat seat0: Starting
[+0.01s] DEBUG: Seat seat0: Creating user session
[+0.01s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.01s] DEBUG: User /org/freedesktop/Accounts/User1000 added
[+0.01s] DEBUG: Seat seat0: Creating display server of type x
[+0.02s] DEBUG: Using VT 7
[+0.02s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.02s] DEBUG: DisplayServer x-0: Logging to /var/log/lightdm/x-0.log
[+0.02s] DEBUG: DisplayServer x-0: Writing X server authority to /var/run/lightdm/root/:0
[+0.02s] DEBUG: DisplayServer x-0: Launching X Server
[+0.02s] DEBUG: Launching process 3554: /usr/bin/X -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.02s] DEBUG: DisplayServer x-0: Waiting for ready signal from X server :0
[+0.02s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.02s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.26s] DEBUG: Got signal 10 from process 3554
[+0.26s] DEBUG: DisplayServer x-0: Got signal from X server :0
[+0.26s] DEBUG: DisplayServer x-0: Connecting to XServer :0
[+0.26s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+0.26s] DEBUG: Session pid=3565: Started with service 'lightdm-autologin', username 'pmsl'
[+0.27s] DEBUG: Session pid=3565: Authentication complete with return value 0: Success
[+0.27s] DEBUG: Seat seat0: Session authenticated, running command
[+0.27s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+0.27s] DEBUG: Session pid=3565: Running command /usr/sbin/lightdm-session gnome-session --session=ubuntu
[+0.27s] DEBUG: Creating shared data directory /var/lib/lightdm-data/pmsl
[+0.27s]
[Thread 0x7fffc3eef700 (LWP 5295) exited]DEBUG: Session pid=3565: Logging to .xsession-errors
[+0.29s] DEBUG: Activating VT 7
[+0.29s] DEBUG: Activating login1 session c2
[+0.29s] DEBUG: Seat seat0 changes active session to c2
[+0.29s] DEBUG: Session c2 is already active
Мне не нравится выполнять команду "sudo service lightdm restart" вручную при загрузке компьютера.
[Thread 0x7fffc3eef700 (LWP 5295) exited]
3 ответа
Как опубликовано в другом форуме (не может взять кредит), откройте командное окно и введите следующую команду:
перезапустить единство панель-сервис
Это сработало для меня - по крайней мере, пока не будет сделано более постоянное исправление.
В настоящее время вы можете попытаться переместить строку меню в окна приложения: http://www.linuxandubuntu.com/home/10-things-to-do-after-installing-ubuntu-16-04-xenial-xerus
См. Инструкции в разделе "(ii) Показать меню в строке заголовка окна".
Выйдите, войдите - у меня сработало!
Ура, Тило
Я выбрал строку меню в окне приложения, и строка меню всегда видна. С моей настройкой у меня та же проблема, за исключением одного различия: у меня есть два разных варианта. Либо в приложении (например, LibreOffice) полностью отсутствует строка меню, либо в приложении (например, gnome-терминал) строка меню удваивается. Обе проблемы появляются сразу после перезагрузки и исчезают, если я выйду из системы и вернусь обратно. То есть полностью без изменения каких-либо настроек или выполнения каких-либо команд; Обычный logout-login решает проблему. Что ж, для большинства приложений - в некоторых приложениях строка меню иногда удваивается.
Я надеюсь, что кто-то может сказать мне, на какую часть системы я мог бы указать свой отчет об ошибках, так как на данный момент я не знаю, какой компонент может быть причиной этого.