Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dashboard] Arch Linux 上无法运行 #263

Closed
zxp19821005 opened this issue May 29, 2023 · 5 comments
Closed

[Dashboard] Arch Linux 上无法运行 #263

zxp19821005 opened this issue May 29, 2023 · 5 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists no response No response to this issue

Comments

@zxp19821005
Copy link

📄 Describe the bug

我目前正准备将其移植到ArchLinux上,但是在移植的过程中出现了一堆问题。
首先,PKGBUILD文件内容如下:

# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
pkgname="kitx-bin"
pkgver=3.23.04.6488
pkgrel=1
pkgdesc="An all-purpose toolbox app. | 一个万用的工具箱"
arch=("x86_64")
url="https://kitx.apps.catrol.cn/"
_githuburl="https://github.com/Crequency/KitX"
license=('AGPL3')
depends=('zlib' 'glibc' 'fontconfig' 'gcc-libs')
makedepends=('gendesk')
conflicts=("${pkgname%-bin}" "${pkgname%-bin}-appimage")
options=(!strip)
noextract=("${pkgname%-bin}-${pkgver}.7z")
source=("${pkgname%-bin}-${pkgver}.7z::${_githuburl}/releases/download/v${pkgver}/${pkgname%-bin}-linux-x64.7z")
sha256sums=('36ba5acddbd8f8c48e0b1291c05f1ca73b271dc4a9a3d1cb95e2a704cf2816ed')
package() {
    install -Dm755 -d "${pkgdir}/opt/${pkgname%-bin}"
    bsdtar -xf "${srcdir}/${pkgname%-bin}-${pkgver}.7z" -C "${pkgdir}/opt/${pkgname%-bin}"
    install -Dm644 "${pkgdir}/opt/${pkgname%-bin}/Assets/KitX-Icon-1920x-margin-2x.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-bin}.png"
    gendesk -f --icon "${pkgname%-bin}" --categories "Utility" --name "KitX" --exec '"/opt/kitx/KitX Dashboard"'
    install -Dm644 "${srcdir}/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
    find "${pkgdir}/opt/${pkgname%-bin}" -type f -exec chmod a-w {} \;
    find "${pkgdir}/opt/${pkgname%-bin}" -type d -exec chmod 755 {} \;
    chmod 755 "${pkgdir}/opt/${pkgname%-bin}/KitX Dashboard"
    touch "${pkgdir}/opt/${pkgname%-bin}/dump.log"
    chmod 666 "${pkgdir}/opt/${pkgname%-bin}/dump.log"
    install -Dm777 -d "${pkgdir}/opt/${pkgname%-bin}/Log" "${pkgdir}/opt/${pkgname%-bin}/Config" "${pkgdir}/opt/${pkgname%-bin}/Data"
    chmod 666 "${pkgdir}/opt/${pkgname%-bin}/Languages/"*
}

最终打包运行之后,dump.log报错如下:

$ cat dump.log 
Default font family name can't be null or empty.% 

我想提几个建议:
1、整个程序, 给人的感觉就是要安装到$HOME目录使用,否则会因为各种问题无法正常启动;不知道能不能考虑一下将诸如日志、配置文件之类的放在$HOME/.config目录下呢?
2、不知道为什么语言文件也需要写入权限呢?
3、能否考虑下Linux下的兼容性问题,不要在文件名中间加空格呢?

⛏ To Reproduce

No response

⚒ Expected behaviour

No response

🖥 Client version

No response

🖼 Screenshots

No response

📎 Additional context

No response

@zxp19821005 zxp19821005 added bug Something isn't working help wanted Extra attention is needed labels May 29, 2023
@Dynesshely
Copy link
Member

关于无法运行的原因请参考 #262 , 我们正在着手解决.

关于您提出的建议:

  1. 并非一定要安装到 $HOME 目录, 您可以放置于任何目录, 只要有对自身目录的读取写入权限即可运行
  2. 这个不做过多解释, 对于应用目录下的内容, 最好都拥有读取写入的权限
  3. 能否详细解释具体遇到了哪些兼容性问题? 十分感谢.
@github-actions
Copy link

Tracked by #223 .

@github-actions github-actions bot added the tracking This issue is tracking by another issue label May 29, 2023
@Dynesshely Dynesshely added the duplicate This issue or pull request already exists label May 29, 2023
@Dynesshely
Copy link
Member

Duplicated #109 .

@Dynesshely Dynesshely added no response No response to this issue and removed tracking This issue is tracking by another issue labels Jun 25, 2023
@Dynesshely
Copy link
Member

Closed because no response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists no response No response to this issue
2 participants