tiled icon indicating copy to clipboard operation
tiled copied to clipboard

Double clicking a .tx file should open it in Tiled.app

Open hotdogsoup-nl opened this issue 2 years ago • 2 comments

Describe the bug Double clicking a .tx file should open it in Tiled.app

To Reproduce Steps to reproduce the behavior:

  1. open a Finder window.
  2. double click on a .tx file

*Expected behavior Tiled.app should open the template file in the Template editor.

Work around By holding Option+CMD the .tx file can be dragged & dropped onto the Tiled.app icon. Now the file is opened correctly.

Specifications:

  • macOS 12.3.1
  • Tiled Version: 1.8.5

hotdogsoup-nl avatar May 24 '22 14:05 hotdogsoup-nl

Yeah, that's a good thing to look into. I'm not sure if it's enough to just add a line with tx to the Info.plist file, but that'd be a start at least. Probably tsx, as well as tmj, tsj and tj (more specific extensions supported by the JSON format) and tiled-project should be added there as well.

bjorn avatar May 24 '22 14:05 bjorn

It would be nice if the Windows installer also associated those other formats with Tiled, ideally optionally. Looks like only TMX is registered: https://github.com/mapeditor/tiled/blob/3d8724f91ba53d7c1d245b5a8f778662a7aa5d0d/dist/win/installer.wxs#L142-L147

It looks like in some versions of Windows (or at least in some combinations of settings?), manual registrations display a different, less clear icon than the built-in association, so even though it's fairly easy to make the associations manually after installing, it would be nice to have the installer make them. Screenshot from Mitsuru Tenma on Discord: image On my Windows manual associations look fine, but I can see why they'd be suboptimal on theirs. I imagine it's just some settings difference, but Windows doesn't make it easy to find xP

eishiya avatar Jun 02 '22 17:06 eishiya