René's URL Explorer Experiment


Title: Fix REG_APP_DIR to support jpackage application launchers by tutimura-kg · Pull Request #1528 · processing/processing4 · GitHub

Open Graph Title: Fix REG_APP_DIR to support jpackage application launchers by tutimura-kg · Pull Request #1528 · processing/processing4

X Title: Fix REG_APP_DIR to support jpackage application launchers by tutimura-kg · Pull Request #1528 · processing/processing4

Description: Description This PR fixes an issue where the file association fails when Processing is packaged and launched using jpackage. Currently, REG_APP_DIR relies directly on System.getProperty("user.dir"). However, when launched via a jpackage generated launcher, user.dir points to the directory from which the application was invoked (e.g., the current terminal directory or shortcut location), rather than the actual installation directory of processing.exe. This causes incorrect registry paths to be registered in checkAssociations(). Thus, launching via file association breaks the next launch via file association. And launching via shortcut fixes the file association. This has not surfaced as a major issue on Windows 11 because the File Manager can override registry-defined associations. However, it remains a hidden bug that this PR aims to fix. Changes Updated REG_APP_DIR to dynamically resolve the installation directory based on the location of the JAR file (via WindowsPlatform.class). Added a fallback to the original user.dir behavior in case processing.exe cannot be found relative to the JAR location. Kept the changes minimal to avoid any unexpected impact on the existing codebase. This ensures that file associations (.pde, etc.) always register the correct absolute path of processing.exe, regardless of the working directory at launch.

Open Graph Description: Description This PR fixes an issue where the file association fails when Processing is packaged and launched using jpackage. Currently, REG_APP_DIR relies directly on System.getProperty("user....

X Description: Description This PR fixes an issue where the file association fails when Processing is packaged and launched using jpackage. Currently, REG_APP_DIR relies directly on System.getProperty("u...

Opengraph URL: https://github.com/processing/processing4/pull/1528

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:5589233b-b5d7-1000-f6de-82291a68fdf5
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idECF4:2C7650:1A0E61:22DBE8:6B05F991
html-safe-nonce1308d6dcfdd1bfa0c3d82028dbb93fb810557327fdaed397e33c2176d499157d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0Y0OjJDNzY1MDoxQTBFNjE6MjJEQkU4OjZCMDVGOTkxIiwidmlzaXRvcl9pZCI6IjU5MzE3NjQ4OTg5MTYwNzE4MjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac422f8fe3144a43caa22554401e5cb89db68e50b8616189642ea2ae49c3fbb46d
hovercard-subject-tagpull_request:3896484899
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/processing/processing4/pull/1528/files
twitter:imagehttps://avatars.githubusercontent.com/u/175937771?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/175937771?s=400&v=4
og:image:altDescription This PR fixes an issue where the file association fails when Processing is packaged and launched using jpackage. Currently, REG_APP_DIR relies directly on System.getProperty("user....
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonec214754a6652274794ed4e054a7b71be999d69843f103ba54893001d45010ece
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/processing/processing4 git https://github.com/processing/processing4.git
octolytics-dimension-user_id1617169
octolytics-dimension-user_loginprocessing
octolytics-dimension-repository_id844382769
octolytics-dimension-repository_nwoprocessing/processing4
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id844382769
octolytics-dimension-repository_network_root_nwoprocessing/processing4
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7d164a4e71eb333b2b17fd5b17e18efb7855505c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/processing/processing4/pull/1528/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprocessing%2Fprocessing4%2Fpull%2F1528%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprocessing%2Fprocessing4%2Fpull%2F1528%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=processing%2Fprocessing4
Reloadhttps://github.com/processing/processing4/pull/1528/files
Reloadhttps://github.com/processing/processing4/pull/1528/files
Reloadhttps://github.com/processing/processing4/pull/1528/files
processinghttps://github.com/processing
processing4https://github.com/processing/processing4
Codehttps://github.com/processing/processing4
Issues265 (265)https://github.com/processing/processing4/issues
Pull requests22 (22)https://github.com/processing/processing4/pulls
Actionshttps://github.com/processing/processing4/actions
Projectshttps://github.com/processing/processing4/projects
Wikihttps://github.com/processing/processing4/wiki
Security and qualityhttps://github.com/processing/processing4/security
Insightshttps://github.com/processing/processing4/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fprocessing%2Fprocessing4%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fprocessing%2Fprocessing4%2Fissues%2Fnew%2Fchoose
tutimura-kghttps://github.com/tutimura-kg
processing:mainhttps://github.com/processing/processing4/tree/main
tutimura-kg:fix-associate-issuehttps://github.com/tutimura-kg/processing4/tree/fix-associate-issue
Conversation 5 https://github.com/processing/processing4/pull/1528
Commits 3 https://github.com/processing/processing4/pull/1528/commits
Checks 0 https://github.com/processing/processing4/pull/1528/checks
Files changed https://github.com/processing/processing4/pull/1528/files
Please reload this pagehttps://github.com/processing/processing4/pull/1528/files
Fix REG_APP_DIR to support jpackage application launchers https://github.com/processing/processing4/pull/1528/files#top
Show all changes 3 commits https://github.com/processing/processing4/pull/1528/files
e4012e2 Fix association problem in Windows tutimura-kg Jun 19, 2026 https://github.com/processing/processing4/pull/1528/commits/e4012e2e8651eb62b3b6e95379c45ae74902caea
1d71bbc Fix comment tutimura-kg Jun 19, 2026 https://github.com/processing/processing4/pull/1528/commits/1d71bbc1999959b7c4fbdfbba5303cf03db7bfbd
ce21480 Fix comment tutimura-kg Jun 20, 2026 https://github.com/processing/processing4/pull/1528/commits/ce214801d90324e5f8459884e4ebcc596726cc3a
Clear filters https://github.com/processing/processing4/pull/1528/files
Please reload this pagehttps://github.com/processing/processing4/pull/1528/files
Please reload this pagehttps://github.com/processing/processing4/pull/1528/files
app/src/processing/app/platform/WindowsPlatform.javahttps://github.com/processing/processing4/pull/1528/files#diff-99a49852e1a336b6567755e33707be915a926800bc5b1593ff8c7ad0fb65164b
View file https://github.com/processing/processing4/blob/ce214801d90324e5f8459884e4ebcc596726cc3a/app/src/processing/app/platform/WindowsPlatform.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/processing/processing4/pull/1528/{{ revealButtonHref }}
https://github.com/processing/processing4/pull/1528/files#diff-99a49852e1a336b6567755e33707be915a926800bc5b1593ff8c7ad0fb65164b
https://github.com/processing/processing4/pull/1528/files#diff-99a49852e1a336b6567755e33707be915a926800bc5b1593ff8c7ad0fb65164b
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.