[neon/snap-packaging/snapcraft-desktop-integration] common: common: fix launch speed

Soumyadeep Ghosh null at kde.org
Wed Oct 9 07:19:43 BST 2024


Git commit b647c7c3b989f6e1840e690fd7b6a02214a1d6fb by Soumyadeep Ghosh.
Committed on 08/10/2024 at 18:33.
Pushed by scarlettmoore into branch 'master'.

common: fix launch speed

M  +2    -2    common/desktop-exports

https://invent.kde.org/neon/snap-packaging/snapcraft-desktop-integration/-/commit/b647c7c3b989f6e1840e690fd7b6a02214a1d6fb

diff --git a/common/desktop-exports b/common/desktop-exports
index 6001d69..13a6c12 100644
--- a/common/desktop-exports
+++ b/common/desktop-exports
@@ -206,9 +206,9 @@ if [ $needs_xdg_reload = true ]; then
   needs_xdg_reload=false
 fi
 
-# Check if we can actually read the contents of each xdg dir
+# Check existance of each xdg dir
 for ((i = 0; i < ${#XDG_SPECIAL_DIRS_PATHS[@]}; i++)); do
-  if ! can_open_file "${XDG_SPECIAL_DIRS_PATHS[$i]}"; then
+  if [ ! -d "${XDG_SPECIAL_DIRS_PATHS[$i]}" ]; then
     needs_xdg_update=true
     needs_xdg_links=true
     break


More information about the Neon-commits mailing list