veket官方网站论坛

veket

 找回密码
 要注册
搜索
楼主: liuzhaoyzz

请问下程序分组文件,是在哪里定义的?

[复制链接]
 楼主| 发表于 2024-6-13 08:35 | 显示全部楼层
我找到这个附件应用所在的程序组了。

进入/usr/share/desktop-directories/,右击选择用终端打开,可以用grep搜索关键字:
grep -Hn '附件应用' *
xfce-accessories.directory:6:Name[zh_CN]=附件应用

显示出文件在xfce-accessories.directory的第6行,打开看了下:
cat xfce-accessories.directory
[Desktop Entry]
Version=1.0
Type=Directory
Icon=applications-accessories
Name=Accessories
Name[zh_CN]=附件应用
Name[zh_TW]=附屬應用
Comment=Common desktop tools and applications
Comment[zh_CN]=常用桌面工具和应用程序
Comment[zh_TW]=常見的桌面工具與應用程式

英文名字叫做Accessories
 楼主| 发表于 2024-6-13 08:36 | 显示全部楼层
grep -Hn '系统工具' *
xfce-system.directory:7:Name[zh_CN]=系统工具

grep -rl '系统工具' *|xargs cat

或者:cat xfce-system.directory
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=Directory
Icon=applications-system
Name=System
Name[zh_CN]=系统工具
Comment=System tools and utilities

系统工具程序组名字叫做System
发表于 2024-6-13 09:15 | 显示全部楼层
liuzhaoyzz 发表于 2024-6-13 08:36
grep -Hn '系统工具' *
xfce-system.directory:7:Name[zh_CN]=系统工具


[Desktop Entry]
Version=1.0
Type=Application
Name=SX_veket_Install
Name[zh_CN]=SX veket 安装
Comment=
Exec=
Icon=/usr/share/pixmaps/flashcard.svg
Path=
Terminal=false
Categories=Utility;
StartupNotify=false
制作了一个空壳的pet包,你解开后将脚本放到相应的文件夹下,重新制作成pet 包即可
http://www.lucky8k.com/forum.php ... zOTc0NXwxMzUwMDI%3D

SX_veket_Install.pet

1 KB, 下载次数: 11, 下载积分: 铜币 -5

 楼主| 发表于 2024-6-13 10:28 | 显示全部楼层
自由飞翔 发表于 2024-6-13 09:15
[Desktop Entry]
Version=1.0
Type=Application


这个文件结构我已经搞好了,已经制作成功pet并且成功安装了。
之前只是不知道怎么放入不同的程序组。就是不知道Categories应该怎么填。

 楼主| 发表于 2024-6-14 07:29 | 显示全部楼层
自由飞翔 发表于 2024-6-13 09:15
[Desktop Entry]
Version=1.0
Type=Application


另外想请问下,pet安装完毕的时候,提醒安装好的程序是放在“实用工具”组里面的,实际上我的desktop文件里面,不是这样子的,提示不对,这个该怎么改?
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=SX_Veket_Puppy_Installer
Name[zh_CN]=SX_Veket_Puppy安装器
GenericName=SX_Veket_Puppy_Installer
Icon=/usr/share/icons/SX/SX_icon.png
Comment=Install veket/Puppy from ISO file to any device
Exec=/usr/sbin/SX_Veket_Puppy_Installer.sh
Terminal=true
Categories=Accessories;System;System Tools;Utility;Setup;X-SetupUtility
Path=
StartupNotify=false

默认Accessories优先,已经找到了这个Accessories程序组了,“附件应用”里面已经有了,为啥安装完毕后的提示是在“实用工具”组里面?不对呀?

veket各个版本似乎一直有这个问题。
程序组提示不对.png
附件应用-SX_Veket_Puppy_Installer.png
您需要登录后才可以回帖 登录 | 要注册

本版积分规则

QQ|手机版|Archiver|veket官方网站论坛 ( 粤ICP备 11052856 )

GMT+8, 2025-5-1 18:18

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表