Skip to content

Fix ZIP export to open the parent folder of the exported project#9219

Merged
mbien merged 1 commit intoapache:masterfrom
bicodrex:export_zip_desktop_fix
Feb 25, 2026
Merged

Fix ZIP export to open the parent folder of the exported project#9219
mbien merged 1 commit intoapache:masterfrom
bicodrex:export_zip_desktop_fix

Conversation

@bicodrex
Copy link
Copy Markdown
Contributor

The previous implementation opened the generated ZIP file directly after export, leading to inconsistent and undesirable behavior across platforms:

  • Windows: Behavior depends on the configured default handler. The default is Explorer, which shows the archive view, but third-party tools open their own archive UI, making it harder to locate the parent directory.
  • macOS: Opening a ZIP file triggers automatic extraction by default, so the exported archive would be immediately unpacked.
  • Linux (most distributions): The ZIP file opens in the configured archive manager, showing its contents instead of the containing folder.

This change opens the parent directory of the exported ZIP, providing more consistent behavior across platforms. It also aligns with how Desktop.getDesktop().open(...) is used elsewhere in the repository, for example in DiscoPlatformIt.java.

@matthiasblaesing matthiasblaesing added Editor UI User Interface labels Feb 22, 2026
@apache apache locked and limited conversation to collaborators Feb 22, 2026
@apache apache unlocked this conversation Feb 22, 2026
Copy link
Copy Markdown
Contributor

@matthiasblaesing matthiasblaesing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sane to me. But the wording seems off. I read "of the exported project" as meaning to open the folder where the project resides, not where the zip file is placed.

Wouldn't make "Fix ZIP export to open the parent folder of the exported zip file" make this clearer? What do you think?

However. This is a nitpick. The change makes sense to me, as I was annoyed multiple times because I wanted to get to the final zip and instead the archive programm was opened.

@mbien mbien added this to the NB30 milestone Feb 23, 2026
Exporting a project via File -> Export Project -> To ZIP
opened the generated zip file directly instead of the
containing folder.
@bicodrex bicodrex force-pushed the export_zip_desktop_fix branch from ce98053 to c103649 Compare February 23, 2026 09:23
@bicodrex
Copy link
Copy Markdown
Contributor Author

bicodrex commented Feb 23, 2026

I agree, it is clearer with "exported zip file"

@mbien mbien merged commit 7e829a9 into apache:master Feb 25, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Editor UI User Interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants