我通过访问https://desktop.telegram.org/安装了 Telegram并下载了一个tar.xz
文件。之后我跑了
tar -xJf telegram.tar.xz
Run Code Online (Sandbox Code Playgroud)
其未压缩的tar.xz
文件,给了我Telegram
和Updater
一个文件夹中。
这两个文件都有一个executable (application/x-executable)
作为它们的类型。我通过双击 Telegram 文件安装了 Telegram。
现在,我不确定如何卸载它。我试过
apt remove telegram
Run Code Online (Sandbox Code Playgroud)
但它说“无法找到包电报”,因为它不是从 apt 安装的。如何正确卸载 Telegram Desktop?
我正在尝试创建一个脚本,该脚本将在运行时自动更改墙纸。
#!/bin/bash
cd ~/
rm -r ~/.wallpaper
mkdir .wallpaper
cd ~/.wallpaper
wget https://source.unsplash.com/random/1920x1080
USER=$(whoami)
PATH="file:///home/$USER/.wallpaper/1920x1080"
echo $PATH
gsettings set org.gnome.desktop.background picture-uri "$PATH"
Run Code Online (Sandbox Code Playgroud)
但是当我这样做时,./change_wallpaper.sh
我正确地得到了回声,但是然后
./change_wallpaper.sh: line 12: gsettings: command not found
但是,当我从终端运行相同的命令时,它执行得很好并且墙纸正在改变。
当我运行whereis gsettings
它告诉
gsettings: /usr/bin/gsettings /usr/share/man/man1/gsettings.1.gz
为什么gsettings: command not found
从脚本执行时会显示?