Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 2 commits into from

Conversation

eMPee584
Copy link
Contributor

@eMPee584 eMPee584 commented Nov 30, 2020

… 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.. 😅 #lazy

@probonopd
Copy link
Owner

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.

… 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/
@eMPee584
Copy link
Contributor Author

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

@probonopd
Copy link
Owner

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 otiai10/copy#39

@probonopd
Copy link
Owner

probonopd commented Apr 17, 2022

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

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

@probonopd
Copy link
Owner

@CalebQ42 wdyt?

@CalebQ42
Copy link
Contributor

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 CalebQ42 mentioned this pull request Sep 19, 2022
probonopd pushed a commit that referenced this pull request Sep 19, 2022
* Fix #220

* Fix desktop file in memory

* Fixed #220
Implemented fix mention in #110
Fixed issues caused by squashfs v0.6+ doing things more correctly
Changes build script so zig is not permenently installed and is cleaned

* Linked wrapped command's out and in to stdout and stdin.
Fixes #217
@probonopd
Copy link
Owner

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

@probonopd probonopd closed this Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants