[gnome-games/wip/exalm/hash: 2/2] desktop: Hash uids for desktop games
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/hash: 2/2] desktop: Hash uids for desktop games
- Date: Wed, 22 Aug 2018 06:31:10 +0000 (UTC)
commit b4f2eb35a6e5857e766d14371281352d544f2f55
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Fri Aug 17 14:45:27 2018 +0500
desktop: Hash uids for desktop games
Instead of using application id directly, use its sha256 checksum.
plugins/desktop/src/desktop-uid.vala | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/plugins/desktop/src/desktop-uid.vala b/plugins/desktop/src/desktop-uid.vala
index 4b80203d..0547c2df 100644
--- a/plugins/desktop/src/desktop-uid.vala
+++ b/plugins/desktop/src/desktop-uid.vala
@@ -13,7 +13,9 @@ private class Games.DesktopUid: Object, Uid {
return uid;
var appid = app_info.get_id ();
- uid = @"desktop-$appid";
+ var hash = Checksum.compute_for_string (ChecksumType.SHA256, appid);
+
+ uid = @"desktop-$hash";
return uid;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]