![Ubuntu 软件显示为已安装磁盘?](https://linux22.com/image/1178250/Ubuntu%20%E8%BD%AF%E4%BB%B6%E6%98%BE%E7%A4%BA%E4%B8%BA%E5%B7%B2%E5%AE%89%E8%A3%85%E7%A3%81%E7%9B%98%EF%BC%9F.png)
就在最近,Nautilus 中出现了一个带有路径的新的 53 MB 卷media/qwr/disk
。
我查看了自动启动目录,其中有两个文件。
设置自动启动:
#!/bin/bash
if [ -r $GS_SELF_TEST_OS_RELEASE_FILENAME ];
then
if [[ "$(grep "^NAME" $GS_SELF_TEST_OS_RELEASE_FILENAME | awk -F '"' '{print $2}')" == "Ubuntu" ]];
then
# Delete autostart and recreate to handle migration to ubuntu-software snap
# FIXME: Remove the following line after revision > 214 and < 352 is the majority
rm -rf $SNAP_USER_DATA/.config/autostart
if [[ ! -d "$SNAP_USER_DATA/.config/autostart" ]];
then
mkdir -p $SNAP_USER_DATA/.config/autostart
ln -sfnt $SNAP_USER_DATA/.config/autostart/ ${SNAP/`basename $SNAP`/current}/autostart/ubuntu-software-service.desktop
fi
fi
fi
exec "$@"
和ubuntu-software-service.desktop
:
[Desktop Entry]
Name=Ubuntu Software
Exec=snap-store.ubuntu-software --gapplication-service %U
X-GNOME-Autostart-Delay=60
OnlyShowIn=GNOME;Unity;
NoDisplay=true
为什么 Ubuntu 软件显示为已安装磁盘?我该如何防止这种情况发生?