go-appimage icon indicating copy to clipboard operation
go-appimage copied to clipboard

Prevent loop of unsuccessfull attempts (invalid cross-device link) to…

Open eMPee584 opened this issue 5 years ago • 4 comments

… move desktop file when user's cache directory lies on a tmpfs mount (unburden-home-dir set up to minimize flash writes)

appimaged: 2020/11/29 19:33:24 Registering AppImages in [/home/user/Downloads /home/user/Desktop /home/user/Applications /opt /usr/local/bin] appimaged: 2020/11/29 ERROR main: rename /home/user/.cache/applications//appimagekit_6f9acfe2118f26ccc7b52fb34e248f97.desktop /home/user/.local/share/applications/appimagekit_6f9acfe2118f26ccc7b52fb34e248f97.desktop: invalid cross-device link appimaged: 2020/11/29 19:33:27 main: Moved 1 desktop files to /home/user/.local/share/applications/; use -v to see details appimaged: 2020/11/29 19:33:27 Desktop notification: Added application appimaged: 2020/11/29 19:33:27 Ran update-desktop-database /home/user/.local/share/applications/

This of course is a bit impromptu again.. :sweat_smile: #lazy

eMPee584 avatar Nov 30 '20 06:11 eMPee584

Thanks @eMPee584. I am a bit hesitant to add a dependency to a gist. Could you please integrate the code into this repo?

Thank you very much.

probonopd avatar Nov 30 '20 20:11 probonopd

Ok here's an easier workaround.. the CI borks though.

eMPee584 avatar Dec 22 '20 21:12 eMPee584

github.com/otiai10/copy/stat_times.go:17:29: cannot use stat.Atim.Sec (type int32) as type int64 in argument to time.Unix
github.com/otiai10/copy/stat_times.go:17:44: cannot use stat.Atim.Nsec (type int32) as type int64 in argument to time.Unix
github.com/otiai10/copy/stat_times.go:18:29: cannot use stat.Ctim.Sec (type int32) as type int64 in argument to time.Unix
github.com/otiai10/copy/stat_times.go:18:44: cannot use stat.Ctim.Nsec (type int32) as type int64 in argument to time.Unix

Seems to be blocked by https://github.com/otiai10/copy/pull/39

probonopd avatar Dec 23 '20 18:12 probonopd

Error: ../src/appimaged/appimaged.go:261:23: undefined: files
Error: Process completed with exit code 2.

Now that https://github.com/otiai10/copy/pull/41 is fixed thanks to @CalebQ42, can we revive this? Or is it no longer needed given that we are using #115?

probonopd avatar Apr 17 '22 06:04 probonopd

@CalebQ42 wdyt?

probonopd avatar Sep 17 '22 15:09 probonopd

I don't think we really need this rename anymore. Since we get the desktop file from the AppImage then edited in memory, we don't need to worry about a ton of writes causing the application menu to reload a bunch of times. All that would need to be done is changing the initial desktop file write to xdg.DataHome instead of xdg.CacheHome and removing this rename.

CalebQ42 avatar Sep 18 '22 08:09 CalebQ42

Closing in favor of #222. Thank you very much.

probonopd avatar Sep 19 '22 16:09 probonopd