drawio-desktop icon indicating copy to clipboard operation
drawio-desktop copied to clipboard

AppImage .desktop file problem

Open antonc42 opened this issue 3 years ago • 4 comments

Preflight Checklist

  • [x] I agree to follow the Code of Conduct that this project adheres to.
  • [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

You must agree to search and the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.

Describe the bug The '.desktop' file built into the AppImage includes the '--no-sandbox' option on the 'Exec=' line. This added option somehow breaks the filename being passed in by the '%U' parameter on that line.

To Reproduce Steps to reproduce the behavior:

  1. Run the AppImage with "/path/to/drawio.AppImage --no-sandbox /path/to/file.drawio"
  2. Drawio opens to dialog asking to create a new drawing or open an existing one as if the file parameter isn't passed.
  3. Close drawio
  4. Run the AppImage with "/path/to/drawio.AppImage /path/to/file.drawio"
  5. Drawio runs and opens the file specified.

Expected behavior The '.desktop' file included in the AppImage should allow for the application to be opened with a file parameter.

draw.io version (In the Help->About menu of the draw.io editor):

  • draw.io version 19.0.2

Desktop (please complete the following information):

  • OS: Ubuntu 20.04

Additional context The full '.desktop' file from the AppImage. I'm assuming this is generated in one of the build steps since I can't find it in the repo.

[Desktop Entry]
Name=drawio
Exec=AppRun --no-sandbox %U
Terminal=false
Type=Application
Icon=drawio
StartupWMClass=drawio
X-AppImage-Version=19.0.2
Comment=diagrams.net desktop
MimeType=application/vnd.jgraph.mxfile;application/vnd.visio;
Categories=Graphics;

antonc42 avatar Jun 07 '22 14:06 antonc42

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. See the FAQ for more information.

stale[bot] avatar Mar 25 '23 14:03 stale[bot]

This issue is still occurring. I'm now running draw.io version 20.8.16. Every time I upgrade, I have to fix the '.desktop' file.

antonc42 avatar Mar 27 '23 13:03 antonc42

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. See the FAQ for more information.

github-actions[bot] avatar Mar 27 '24 01:03 github-actions[bot]

I have since moved to using the snap instead of the appimage. The problem doesn't occur in the snap. Possibly related to #1490?

antonc42 avatar Mar 27 '24 15:03 antonc42