首页 > 系统相关 >WSL2 Ubuntu Desktop favorites bar not showing

WSL2 Ubuntu Desktop favorites bar not showing

时间:2025-01-07 13:21:59浏览次数:1  
标签:shell bar gnome extension frank showing Ubuntu Desktop ubuntu

The settings showed by clicking the settings icon:

 

frank@ZZHPC:~$ sudo apt install gnome-shell-extension-dashtodock
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package gnome-shell-extension-dashtodock is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  gnome-shell-extension-ubuntu-dock

E: Package 'gnome-shell-extension-dashtodock' has no installation candidate

 

frank@ZZHPC:~$ sudo apt install gnome-shell-extension-ubuntu-dock
[sudo] password for frank: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
gnome-shell-extension-ubuntu-dock is already the newest version (90ubuntu2).
gnome-shell-extension-ubuntu-dock set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

 

frank@ZZHPC:~$ XDG_CURRENT_DESKTOP=ubuntu:GNOME gnome-control-center
libEGL warning: DRI2: failed to authenticate
MESA: error: ZINK: failed to choose pdev
libEGL warning: egl: failed to create dri2 screen
MESA: error: ZINK: failed to choose pdev
glx: failed to create drisw screen
11:22:23.0501        cc-wwan-panel[ 3035]: WARNING: Error connecting to ModemManager: Error calling StartServiceByName for org.freedesktop.ModemManager1: Failed to activate service 'org.freedesktop.ModemManager1': timed out (service_start_timeout=25000ms)
11:22:23.1298      cc-ubuntu-panel[ 3035]: WARNING: No gedit is installed here. Colors won't be updated. Please fix your installation.
11:23:31.6135                  Gtk[ 3035]: WARNING: Finalizing AdwPreferencesPage 0x562f7a48dc60, but it still has children left:
   - GtkCenterBox 0x562f7a1d3680

The settings showed by this command is different than the default:

 

The file ~/.xsessionrc didn't exist.

frank@ZZHPC:~$ echo 'export XDG_CURRENT_DESKTOP=ubuntu:GNOME' >> ~/.xsessionrc

 

PS C:\Users\ZhangZhihui> wsl -d Ubuntu
frank@ZZHPC:/mnt/c/Users/ZhangZhihui$ exit
logout
PS C:\Users\ZhangZhihui> wsl --list --verbose
  NAME      STATE           VERSION
* Ubuntu    Running         2

 

frank@ZZHPC:~$ hostname -I
172.26.76.164

 

远程桌面登录失败是因为一旦没有用户在登录,WSL2 Ubuntu会自动停止:

PS C:\Users\ZhangZhihui> wsl --list --verbose
  NAME      STATE           VERSION
* Ubuntu    Stopped         2

 

在WSL2(Windows Subsystem for Linux 2)中,Ubuntu实例可能会在一段时间不活动后自动关闭。这是因为WSL2的设计会在没有活动进程时自动终止Linux实例以节省资源。


你可以通过运行一个后台任务来保持实例活跃。

 

Add below content in .bashrc:

if [[ $(ps -ef | grep 'sleep 86400' | grep -v 'grep' | wc -l) == 0 ]]; then
  sleep 86400 &
fi

It doesn't work.

标签:shell,bar,gnome,extension,frank,showing,Ubuntu,Desktop,ubuntu
From: https://www.cnblogs.com/zhangzhihui/p/18657437

相关文章

  • 高级java每日一道面试题-2025年01月04日-并发篇-说说CyclicBarrier和CountDownLatch的
    如果有遗漏,评论区告诉我进行补充面试官:说说CyclicBarrier和CountDownLatch的区别?我回答:在Java高级面试中,CyclicBarrier和CountDownLatch是两个经常被提及的并发工具类,它们都用于实现线程间的同步,但存在显著的区别。以下是对这两个类的详细比较:一、计数器使用方式的......
  • WSL2 - Install a Desktop Environment (e.g., XFCE, GNOME, or KDE)
    1.InstallWSL2andUbuntuIfyouhaven’tsetupWSL2withUbuntu,followthesestepsfirst:OpenPowerShellasAdministratorandrunthefollowingcommandtoinstallWSL:bashCopycodewsl--installAftertheinstallationcompletes,restarty......
  • Redis可视化工具 Another Redis Desktop Manager工具使用详细教程(附下载链接)
    Redis可视化工具推荐:AnotherRedisDesktopManagerRedis是一种高性能的键值数据库,广泛应用于缓存和消息队列等场景。对于开发者来说,命令行工具固然强大,但操作繁琐。而一款高效易用的可视化工具可以极大地提升使用效率。本篇将为大家推荐一款开源、跨平台且功能强大的Redis可......
  • foobar2000 v2.24.1 汉化版
    foobar2000v2.24.1汉化版-----------------------【软件截图】----------------------   -----------------------【软件介绍】----------------------foobar2000是一个Windows平台下的高级音频播放器.包含完全支持unicode及支持播放增益的高级标签功能.特色:*......
  • [Qt] 万字详解 | 常用控件 | Button | Label | LCD | ProgressBar
    目录按钮类控件1、PushButton按钮2、RadioButtion单选click、press、release、toggled的区别3、CheckBox复选4、ToolButton显示类控件1、Label2、LCDNumber3、ProgressBar4、CalendarWidget按钮类控件1、PushButton按钮概述:QPushButton是一个表示......
  • PCIe扫盲——基地址寄存器(BAR)详解
    基地址寄存器(BAR)在配置空间(ConfigurationSpace)中的位置如下图所示:其中Type0Header最多有6个BAR,而Type1Header最多有两个BAR。这就意味着,对于Endpoint来说,最多可以拥有6个不同的地址空间。但是实际应用中基本上不会用到6个,通常1~3个BAR比较常见。主要注意的是,如果某个设备的B......
  • obstacle vs barrier coca
     left4WORD1:OBSTACLE WORDW1W2 BIGGEST46086ThebiggestobstacleIfaceis我面临的最大障碍是Thebiggestobstacleforuswasthat对我们来说最大的障碍是 MAIN13932themainobstacle主要障碍 AN1914475 SERIOUS8122isaseriousobst......
  • wx.setTopBarText
    wx.setTopBarText(Objectobject)从基础库1.9.9开始,本接口停止维护基础库1.4.3开始支持,低版本需做兼容处理。以Promise风格调用:支持需要页面权限:当前是插件页面时,宿主小程序不能调用该接口,反之亦然小程序插件:不支持功能描述动态设置置顶栏文字内容。只有当前小......
  • wx.hideNavigationBarLoading
    wx.hideNavigationBarLoading(Objectobject)以Promise风格调用:支持需要页面权限:当前是插件页面时,宿主小程序不能调用该接口,反之亦然小程序插件:支持,需要小程序基础库版本不低于2.1.0在小程序插件中使用时,只能在当前插件的页面中调用微信Windows版:支持微信Mac版:支持......
  • wx.setNavigationBarColor
    wx.setNavigationBarColor(Objectobject)基础库1.4.0开始支持,低版本需做兼容处理。以Promise风格调用:支持需要页面权限:当前是插件页面时,宿主小程序不能调用该接口,反之亦然小程序插件:支持,需要小程序基础库版本不低于2.1.0在小程序插件中使用时,只能在当前插件的页面......