File open does not work (name has file extension only)

Hi,

I've copied the file '.bash_profile' from Unix to a local server (FTP) and when I double click on it ("\office.test.com\VIE\User\abc.bash_profile") I get the error window

Windows cannot find 'C:\Programme\IDM Computer Solutions\UltraEdit-32\uedit32.exe \\office.test.com\VIE\User\abc\.bash_profile'

but the file extension BASH_PROFILE is defined with the action "open" as "C:\Programme\IDM Computer Solutions\UltraEdit-32\uedit32.exe" "%1"

When I right click on the file and select "Open With" and then "UltraEdit" and "OK" - the file will opened correctly with UltraEdit.

When I rename the file to e.g. "x.bash_profile", the double click works.

Why not with double click and ".bash_profile"?

Thanks a lot!

btw: The Windows error message above shows not quotes - is this a bug in the error message or won't it be quoted by DO (9.1.1.5)?

What is the setting highlighted below set to? If it's on, what's in the path box below it (where TextPad.exe is in my screenshot?

Also, what happens if you double-click the same file in Explorer rather than Opus?


A double click from Windows Explorer opens UltraEdit with the file ".bash_profile" correctly.

In DO prefs, "Open unregistered file types" is selected and filled with "C:\Programme\IDM Computer Solutions\UltraEdit-32\uedit32.exe" (without quotes).

For testing I've unselected "Open unregistered files types" (+ APPLY) and double clicked on the file in DO - and UltraEdit opens with the file (as expected).

So the double click in DO with registered file types does not work if the file name has only a file extension like ".bash_profile". When I rename it into "x.bash_profile" it works.

Should I make a bug report?

Hmm... There must be more to it than that as it works okay for me using .bash_profile and TextPad.exe as the default viewer.

Anyone else have UltraEdit and able to see what happens when they double-click a file called .bash_profile?

Ok - I've made a full test and found it:

(Earlier) I made a backup at home (German Windows) where the default path is "C:\Programme" .. and restored it here in the company (English Windows) where the default path is "C:\Program Files" - so of course - DO couldn't find the program here.

Is there a solution that I can use an environment variable on this preference setting? (I think it's "ProgramFiles" - e.g. as "%ProgramFiles%").

However - during this full test I've found out:

Windows Explorer shows ".bash_profile" under the column "file extension" and not under the main part of the file name.

DO shows it under the column "Name" (main part + extension) (ok) - but not under the column "Ext" ... so I think THIS is a bug (another one as the subject of this thread).

[quote="fuzi1968"]Ok - I've made a full test and found it:

(Earlier) I made a backup at home (German Windows) where the default path is "C:\Programme" .. and restored it here in the company (English Windows) where the default path is "C:\Program Files" - so of course - DO couldn't find the program here.[/quote]

Makes sense. (So the error message saying "Windows cannot find 'C:\Programme..." was seen on the computer where "C:\Programme" doesn't exit.)

That doesn't seem to work. I've filed a feature request with GPSoftware as it could be useful.

If the viewer you want is registered to the .txt filetype then you can just leave the text viewer path blank in Preferences and Opus will find it automatically. That would work on both machines.

[quote]Windows Explorer shows ".bash_profile" under the column "file extension" and not under the main part of the file name.

DO shows it under the column "Name" (main part + extension) (ok) - but not under the column "Ext" ... so I think THIS is a bug (another one as the subject of this thread).[/quote]

That isn't a bug, it's done on purpose to prevent Opus showing silly things for Unix-style hidden files that start with a dot and have no extension. ".bash_config" is not a file type extension, it's just a filename that starts with a dot.

Also, files need to have something in the Name column for you to be able to select them (and see if they are selected). If everything was put into the extension column then that would cause problems for people with icons turned off, in addition to it looking weird and being wrong for Unix-style dot-filenames (where the stuff after the initial dot is not a file extension).

Opus used to do what Explorer does but that was changed when someone pointed out the problems it causes.