Author Topic: File extensions in uppercase  (Read 5034 times)

Offline rvr

  • Newcomer
  • Posts: 5
File extensions in uppercase
« on: 2015 August 09 10:30:37 »
Hi. I was trying to open some Canon raw files in Linux, but they weren't recognized. It seems the file dialog is case sensitive. Renaming the file from "CR2" to "cr2" extension did the trick. I'm using Ubuntu 14.10 and PixInsight version 01.08.04.1171.

Offline Alejandro Tombolini

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1267
    • Próxima Sur
Re: File extensions in uppercase
« Reply #1 on: 2015 August 09 11:12:00 »
Hi, I cannot reproduce it using Kubuntu 14.04 and can open both .CR2 and .cr2 without problem.
Saludos, Alejandro.

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: File extensions in uppercase
« Reply #2 on: 2015 August 10 00:59:19 »
I can't reproduce this either on Fedora 19 and 20.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline GJRodenburg

  • Newcomer
  • Posts: 1
Re: File extensions in uppercase
« Reply #3 on: 2015 August 22 07:13:57 »
I can confirm this on a Debian Jessie install for Nikon Raws. Renaming NEF to nef and the file explorer sees the files.

Offline AdirondackAstro

  • Newcomer
  • Posts: 4
Re: File extensions in uppercase
« Reply #4 on: 2015 September 05 16:33:27 »
Sorry to bring up a older thread, but I'm running Ubuntu 15.04 and have to rename all files from CR2 to cr2 in order to see them in the file explorer.

Offline NGC7789

  • PixInsight Old Hand
  • ****
  • Posts: 391
Re: File extensions in uppercase
« Reply #5 on: 2015 September 05 16:35:25 »
Sorry for the circular thread references but see my finding on this matter here:

http://pixinsight.com/forum/index.php?topic=8963.0

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
[FIXED] File extensions in uppercase
« Reply #6 on: 2015 September 08 03:26:43 »
Bug fixed. The problem is not actually with file extensions, but with a bug in the initial 1.8.4 release that prevents using platform-independent file dialogs. This bug is now fixed so this problem won't happen in the next release.

However, native file dialogs in recent Ubuntu versions (actually, in recent GNOME versions packed with Ubuntu; this is why this problem doesn't happen on Kubuntu) use case-sensitive file extensions. So if you use GNOME native file dialogs, this problem will continue happening for you. Please note that there is nothing I can do to change the behavior of native dialogs, since they are completely out of my control. In my opinion, this is clearly an error because case-sensitive file suffixes on GUI elements cause platform compatibility problems without any added benefit. I haven't found any configuration setting on Ubuntu 15.04 to fix this problem.

So the only solution for Ubuntu 15 / GNOME users will be to use platform-independent file dialogs, which can be easily selected with Preferences (File I/O Settings section). Platform-independent file dialogs will work without problems in the next 1.8.4 version. In the meanwhile, the obvious workaround is using the File Explorer window in PixInsight.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: File extensions in uppercase
« Reply #7 on: 2015 September 08 06:32:21 »
That said, I'll change the default file extensions to uppercase in the next version of the DSLR_RAW module, so it will first look for .CR2 instead of .cr2, .NEF instead of .nef, etc. This should help with GNOME system dialogs.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline kurja

  • Newcomer
  • Posts: 4
Re: File extensions in uppercase
« Reply #8 on: 2015 October 04 08:08:50 »
This problem appears to persist (Ubuntu 14.04), and ticking the box in File I/O settings doesn't help either (there's a likely cause mentioned in the hover text?).

Starting PI as root seems to work around the issue.

Offline Alejandro Tombolini

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1267
    • Próxima Sur
Re: File extensions in uppercase
« Reply #9 on: 2015 October 04 09:29:33 »
Hi kurja, welcome to the forum. I think that the new version of the DSLR_RAW module with the bug fixed will be in the new release 01.08.04.1185 which is not available yet.

Saludos, Alejandro

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: File extensions in uppercase
« Reply #10 on: 2015 October 08 16:28:42 »
Version 1.8.4.1185 has been released. However, this problem with uppercase file extensions is *not* a PixInsight bug, so nothing has to be fixed. Case-sensitive file extensions obey to a (wrong, in my opinion) decision adopted in recent Ubuntu/GNOME versions. Please note that the rest of platforms and desktop environments (including KDE and GNOME desktops in the rest of Linux distributions that we have tested) use case-insensitive file extensions on file dialogs.

To open files with uppercase file suffixes on recent Ubuntu versions, you have to use multiplatform file dialogs in PixInsight: EDIT > Global Preferences > File I/O Settings > Use native file dialogs (disable). Alternatively, you can use PixInsight's File Explorer to select and open files on the workspace.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline kurja

  • Newcomer
  • Posts: 4
Re: File extensions in uppercase
« Reply #11 on: 2015 October 09 11:21:23 »
In latest version un-ticking the box in preferences does help in my case as well; no more need to run as root.