feat: add property 'X_Deepin_Vender'

Signed-off-by: ComixHe <heyuming@deepin.org>
This commit is contained in:
ComixHe
2023-11-06 15:58:46 +08:00
committed by Comix
parent e61c8ae17a
commit d35ef8ae1f
3 changed files with 13 additions and 0 deletions

View File

@ -476,6 +476,11 @@ bool ApplicationService::x_linglong() const noexcept
return !val.isNull();
}
QString ApplicationService::x_Vendor_Deepin() const noexcept
{
return findEntryValue(DesktopFileEntryKey, "X-Deepin-Vendor", EntryValueType::String).toString();
}
bool ApplicationService::terminal() const noexcept
{
auto val = findEntryValue(DesktopFileEntryKey, "Terminal", EntryValueType::String);