[Bug Report] 启动器的图标必定会显示成文件管理器
Tofloor
poster avatar
奢青
deepin
3 hours ago
Author

运行下面的程序,当且仅当 self.li_yo.get()=='option1',启动器的图标必定会显示成文件管理器,重启后才正常.

def open_xlsx_libre(self,file_path:Path):
    if self.li_yo.get()=='option1':
        cmd = [
            "/usr/bin/ll-cli",
            "run",
            "org.libreoffice.libreoffice.linyaps",
            "--url",
            "%U",
            "--",
            "--",
            "start.sh",
            "--calc",
            str(file_path)
        ]
    elif self.li_yo.get()=='option2':
        cmd = [
            "/opt/apps/com.yozosoft.yozo-office/files/bin/yozoc",
            str(file_path)
        ]
    elif self.li_yo.get()=='option3':
        cmd = [
            "/opt/apps/cn.wps.wps-office/files/bin/et",
            str(file_path)
        ]
    subprocess.run(cmd,check=True)
Reply Favorite View the author
All Replies

No replies yet