记录 | ubuntu安装Albert

ubuntu 安装 Albert

# 依赖安装
sudo apt install cmake pybind11-dev libmuparser-dev libqalculate-dev libxcb-cursor0 libgl1-mesa-dev

# 安装Qt6
git clone --recursive https://github.com/albertlauncher/albert.git

cd albert
# 若 albert/plugin clone失败,则重新跳转复制链接克隆
rm -rf plugin
git clone --recursive https://github.com/albertlauncher/plugins.git

cd lib
rm -rf QHotkey
git clone --recursive https://github.com/Skycoder42/QHotkey.git
export Qt6_DIR=/home/codingai/Qt/6.5.0/gcc_64/lib/cmake/Qt6

cmake -B build -DCMAKE_BUILD_TYPE=Debug
cmake --build build -j32
sudo cmake --install build

# 配置环境
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/workspace/env/albert/build/lib:/home/codingai/Qt/6.5.0/gcc_64/lib

构建桌面应用:

cd ~/.local/share/applications
vim albert.desktop
# 加入
[Desktop Entry]
Name=albert
Icon=/workspace/0_env/albert.png
Exec=/workspace/0_env/albert/build/bin/albert
Type=Application

命令行安装

sudo add-apt-repository ppa:nilarimogard/webupd8 
sudo apt update 
sudo apt install albert

加入开机启动:

sudo cp ~/.local/share/applications/albert.desktop /etc/xdg/autostart/

你可能感兴趣的:(踩坑记录,ubuntu,linux,Albert)