Description bug in DEB file created by jpackage when opened with QApt installer

huangapple go评论69阅读模式
英文:

Description bug in DEB file created by jpackage when opened with QApt installer

问题

在Linux上创建deb包时,使用--description添加描述会生成deb文件,当使用QApt软件包安装程序(双击安装)打开时,会在描述部分显示定义的文本,看起来像是粗体标题,下面是该描述的副本,但删除了第一个字符:

命令:

jpackage -t deb \
--app-version 1.0.0 \
--icon books256.png \
--name hello \
--description 'my testing text' \
--dest target/jpackage_outputdir/ \
--temp target/jpackage_tempdir \
--input target/jpackage_inputdir \
--main-class core.Main \
--main-jar jarfile.jar \
--linux-menu-group Office \
--linux-shortcut

是否有办法通过精细设置粗体标题和下面的文本来避免这种不专业的外观,或者至少通过删除描述部分的重复内容来解决这个问题?

使用Kubuntu 23.0.4,JDK - openjdk 17.0.7 2023-04-18 LTS

Description bug in DEB file created by jpackage when opened with QApt installer

英文:

Adding description with --description while creating deb package on linux creates deb file, which when opened with QApt package installer (double click installation) shows defined text in description section, which seems like a bold header and underneath there is that description again with first character stripped:

Description bug in DEB file created by jpackage when opened with QApt installer

Command:

jpackage -t deb \
--app-version 1.0.0 \
--icon books256.png \
--name hello \
--description 'my testing text' \
--dest target/jpackage_outputdir/ \
--temp target/jpackage_tempdir \
--input target/jpackage_inputdir \
--main-class core.Main \
--main-jar jarfile.jar \
--linux-menu-group Office \
--linux-shortcut

Is there a way to prevent this unprofessional look by finely setting bold header and text underneath separately or at least by removing this duplication in description section?

Using Kubuntu 23.0.4, JDK - openjdk 17.0.7 2023-04-18 LTS

答案1

得分: 0

以下是要翻译的内容:

这个问题的解决方案可能是使用多行描述。第一行是粗体文本,第二行位于其下,尽管在使用单行描述时仍然存在 bug。

jpackage -t deb \
--app-version 1.0.0 \
--icon books256.png \
--name hello \
--description '第一行
第二行' \
--dest target/jpackage_outputdir/ \
--temp target/jpackage_tempdir \
--input target/jpackage_inputdir \
--main-class core.Main \
--main-jar jarfile.jar \
--linux-menu-group Office \
--linux-shortcut

Description bug in DEB file created by jpackage when opened with QApt installer

英文:

A solution to this problem might be to use multi-line description. First line is then bold text and second line is below it, altough bug still remains when using single-line description.

jpackage -t deb \
--app-version 1.0.0 \
--icon books256.png \
--name hello \
--description 'first line
second line' \
--dest target/jpackage_outputdir/ \
--temp target/jpackage_tempdir \
--input target/jpackage_inputdir \
--main-class core.Main \
--main-jar jarfile.jar \
--linux-menu-group Office \
--linux-shortcut

Description bug in DEB file created by jpackage when opened with QApt installer

huangapple
  • 本文由 发表于 2023年6月1日 18:16:29
  • 转载请务必保留本文链接:https://go.coder-hub.com/76380876.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定