我找不到已安装的应用程序(HDSentinel_GUI)

我找不到已安装的应用程序(HDSentinel_GUI)

我已经下载并安装了 HDSentinel GUI tar 包,但在应用程序面板中看不到它。我在哪里可以找到它?

我按照如下方式安装它:

tar -xvf hdsentinel_gui64bit.tar.xz
cd HDSentinel_GUI
sudo ./install.sh

install.sh内容:

#!/bin/bash
clear
echo ""
echo "Unzip the HDSentinel_GUI archive to /home/your user name/HDSentinel_Light/"
echo ""
##Unzip the HDSentinel_GUI archive
unzip HDSentinel_GUI.zip -d ~/
echo ""
echo "Copy icon the icon folder"
echo ""
##Copy icon the icon folder
sudo cp ~/HDSentinel_GUI/HDSentinel_GUI.ico -t /usr/share/icons
echo "Set owner and permission for icon"
echo ""
##Set owner and permission for icon
sudo chmod 444 /usr/share/icons/HDSentinel_GUI.ico
echo "Make directory 'usr/share/bin' if not present"
echo ""
##make directory usr/share/bin if not present
sudo mkdir -p /usr/share/bin
echo "Premission for folder"
echo ""
##premission for folder
sudo chmod -R a+rwx /usr/share/bin
echo "Copy to bin library"
echo ""
##Copy the bin folder
sudo cp ~/HDSentinel_GUI/HDSentinel_GUI -t /usr/share/bin
sudo cp ~/HDSentinel_GUI/HDSentinel -t /usr/share/bin
echo "Set premission for application"
echo ""
##Set premission for application
sudo chmod a+rwx /usr/share/bin/HDSentinel_GUI
sudo chmod a+rwx /usr/share/bin/HDSentinel
echo "Make directory for user menu if not present"
echo ""
##Make directory for user menu if not present
sudo mkdir -p ~/.local/share/applications
echo "Copy launcher to user menu"
echo ""
##Copy launcher to user menu
sudo cp ~/HDSentinel_GUI/Hard_Disk_Sentinel_GUI.desktop -t ~/.local/share/applications
echo "Set premission for menu launcher"
echo ""
##set premission for menu launcher
sudo chmod a+rwx ~/.local/share/applications/Hard_Disk_Sentinel_GUI.desktop
echo "Copy launcher to Asztal if present"
echo ""
##copy launcher to desktop
##sudo cp ~/HDSentinel_GUI/Hard_Disk_Sentinel_GUI.desktop -t ~/Asztal
##echo "Copy launcher to Desktop if present"
echo ""
##copy launcher to desktop eng
##sudo cp ~/HDSentinel_GUI/Hard_Disk_Sentinel_GUI.desktop -t ~/Desktop
echo ""
##echo "Set premission for launcher (Desktop)"
echo ""
##Set premission for launcher
##sudo chmod a+rwx ~/Desktop/Hard_Disk_Sentinel_GUI.desktop
echo ""
##echo "Set premission for launcher (Asztal)"
echo ""
##set premission for launcher
##sudo chmod a+rwx ~/Asztal/Hard_Disk_Sentinel_GUI.desktop
echo "Remove install temp directory (/home/your user name/HDSentinel_GUI/)"
##Remove ~/HDSentinel_GUI directory
rm -d -rf ~/HDSentinel_GUI

答案1

显然,安装脚本存在一些错误,例如,没有用于桌面启动器的 .zip文件。~/我们修复了这个聊天室

以下是我们遵循的步骤:

  1. 重新安装应用程序:

    cd /tmp && wget https://www.hdsentinel.com/hdslin/hdsentinel_gui64bit.tar.xz && tar -xvf hdsentinel_gui64bit.tar.xz && cd HDSentinel_GUI && sudo ./install.sh
    
  2. ~/目录现在有一个名为的目录HD_Sentinel_GUI

  3. 接下来,我们在桌面创建一个启动器文​​件和应用程序概览:

    sudo cp ~/HDSentinel_GUI/Hard_Disk_Sentinel_GUI.desktop ~/Desktop 
    
  4. 接下来,我们授予该文件可执行权限,以便它不会用文本编辑器打开:

    sudo chmod +x ~/HDSentinel_GUI/Hard_Disk_Sentinel_GUI.desktop
    
  5. 接下来,我们为应用程序概览创建了一个桌面启动器:

    sudo cp ~/Desktop/Hard_Disk_Sentinel_GUI.desktop /usr/share/applications/
    

现在,该应用程序作为启动器出现并按预期运行!

答案2

该脚本将可执行文件复制到/usr/share/bin/

sudo cp ~/HDSentinel_GUI/HDSentinel_GUI -t /usr/share/bin
sudo cp ~/HDSentinel_GUI/HDSentinel -t /usr/share/bin

“启动器”(.desktop文件)被复制到/.local/share/applications/

sudo cp ~/HDSentinel_GUI/Hard_Disk_Sentinel_GUI.desktop -t ~/.local/share/applications

相关内容