Bug 534441 - SWT Program.findProgram("media extension") returns null by default Windows 10 association
Summary: SWT Program.findProgram("media extension") returns null by default Windows 10...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.8   Edit
Hardware: PC Windows 10
: P3 normal with 5 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-07 12:13 EDT by Dominic Guss CLA
Modified: 2020-09-30 05:05 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dominic Guss CLA 2018-05-07 12:13:26 EDT
When one or more media file extensions are associated with the new Windows 10 Photo application, which is the default associated photo viewing application, the SWT Program.findProgram(<"extension">) always returns null.
Comment 1 Al Bundy CLA 2020-09-30 05:04:08 EDT
Still seems to be an issue.

Program.findProgram("jpg") retuns null with default settings.
But Progam.launch("c:/temp/foobar.jpg") can open the file.

If you assign a new program for jpg-exension (e.g paint) Program.findProgram("jpg") returns a valid program.
Comment 2 Al Bundy CLA 2020-09-30 05:05:27 EDT
Program.getExtensions() returns all extension even those that are not working with Program#findProgram

Program.getPrograms() returns all programs but it seem that the value of extension for each program is null (checked per reflection).