Start in hidden folder

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: helmut, XnTriq, xnview

Hacker
Posts: 237
Joined: Tue May 17, 2005 9:24 pm
Location: Bratislava, Slovakia

Start in hidden folder

Post by Hacker »

Hi,
I have a button in TC that starts XnView in the current dir. (The "Start path" field is empty.)
XnView is set to start in the current directory.

Now watch this little movie about a hidden dir named "hidden":
movie

TIA
Roman
Hacker
Posts: 237
Joined: Tue May 17, 2005 9:24 pm
Location: Bratislava, Slovakia

Post by Hacker »

Can anyone confirm...?

Roman
User avatar
helmut
Moderator
Posts: 8581
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Post by helmut »

Hacker wrote:Can anyone confirm...?

Roman
Could you (briefly) describe what the problem is so that we can focus on that when watching your movie?
Hacker
Posts: 237
Joined: Tue May 17, 2005 9:24 pm
Location: Bratislava, Slovakia

Post by Hacker »

Sorry, I thought it was obvious. :)

Well, I start XnView in a hidden dir named "hidden". There is one JPG inside. However, that JPG is not shown, instead "hidden" is show, but without any meaningful icon (neither a dir, nor a file (??)) and pressing enter on it doesn't do anything. However, when I use the mouse to go one dir higher and then go inside the "hidden" dir in XnView itself, all is fine and the JPG is shown.

TIA
Roman
User avatar
xnview
Author of XnView
Posts: 37889
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Post by xnview »

Hacker wrote:Sorry, I thought it was obvious. :)

Well, I start XnView in a hidden dir named "hidden". There is one JPG inside. However, that JPG is not shown, instead "hidden" is show, but without any meaningful icon (neither a dir, nor a file (??)) and pressing enter on it doesn't do anything. However, when I use the mouse to go one dir higher and then go inside the "hidden" dir in XnView itself, all is fine and the JPG is shown.
How do you start XnView? When i start "browse with xnview" on a picture (in hidden folder), i have good thumbnail. Folder doesn't appear, normal by default hidden folder are not shown...
Pierre.
Hacker
Posts: 237
Joined: Tue May 17, 2005 9:24 pm
Location: Bratislava, Slovakia

Post by Hacker »

xnview wrote:How do you start XnView? When i start "browse with xnview" on a picture (in hidden folder), i have good thumbnail. Folder doesn't appear, normal by default hidden folder are not shown...
As shown in the movie - I click on XnView's icon in Total Commander's button bar. This simply runs c:\programy\xnview\xnview.exe.

Show hidden files is enabled in XnView.

Roman
marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Post by marsh »

I can confirm that starting program in hidden folder from total commander is problematic.
I used TC for fist time to check problem- so I don't know if it was my error, tc's, or xnv's.

1. I installed TC by unarchiving it in a directory. I don't use installers for either program.
2. Used Xnview in toolbar instead of notepad.
3. tc settings: Start Path of xnview empty; show hidden files.
4. Xnview settings: Startup directory -current; show hidden files
5. Started Xnview from TC in non-hidden directory- it works.
6. Started Xnview from TC in hidden directory- strange behaviour Hacker reported.
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France

All is right…

Post by Clo »

:) Hello !

- I tried to reproduce this under Win 98 SE, but I couln't…
  1. I made a dir C:\A9, and set it as "Hidden"
  2. I copied a Roman's *.jpg inside… ;)
  3. I can open the pic in XvView (associated for *.jpg) directly in the main "View" window from that hidden dir. The file is : C:\A9\IMG_2130.JPG
  4. If I launch XnView as "empty" from its button in the TC tool-bar, while that hidden dir has the focus, then I can open the file it contains from the "Open" button, all is right, I can open it from the browser too - from the tree, I don't use "last folder" for the browser. Indeed, the "Hidden" attribute is not shown in the tree, but this is a known issue… I get a thumb-nail, no problem.
  5. Same settings here than <marsh>'s ones about hidden dirs. both in TC and in XnView.
{ Aside :
marsh wrote :
1. I installed TC by unarchiving it in a directory. I don't use installers for either program.
- Hum… I do the same generally, but in that case, it isn't a good idea, 'cause the INI-files paths are not stated in the Registry (the only things which are), and that leads to many irritating annoyances later…
marsh wrote :
2. Used Xnview in toolbar instead of notepad.
- You are not bound to replace a button to add another, the number of icons is not limited… }

:mrgreen: Kind regards,
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice
marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Re: All is right…

Post by marsh »

Clo wrote::) Hello !

- I tried to reproduce this under Win 98 SE, but I couln't…
*Update* Problem occurs in "C:\in\test\hidden" but not "C:\hidden". Something odd is happening. I'll leave the rest to you TC users. :)
Clo wrote:
2. Used Xnview in toolbar instead of notepad.
- You are not bound to replace a button to add another, the number of icons is not limited… }
I'll take a better look at it someday.
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France

Ha!!!

Post by Clo »

:arrow: Hacker & marsh

:) Hello Roman, hello B. !
*Update* Problem occurs in "C:\in\test\hidden" but not "C:\hidden".
• Ah ! It's true ! Finally, I set a path as :
C:\Test\special\A9\IMG_2130.JPG
in which A9 is a hidden dir.
- I can open the pic from TC normally (2-click, D&D on the XvView icon, Enter), but in the browser, the A9 hidden sub-dir does not appear in the tree, while it appears normally when I have C:\A9
- The "Refresh" button does nothing…
- Even if I set "Last used" as the start-dir for the browser, while I've opened the pic in its hidden dir just before, I don't get the hidden sub-dir, no pic, no thumbnail !
- The browser "Reopen" list in the "View" main window and the Reopen files show both C:\Test\special\ only, not the rest of the path and the file for the recently open files list!
- Under Win 98 SE

:mrgreen: Kind regards,
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice
marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Post by marsh »

*update 2*
It is definitely not a TC problem:
Running Xnview from any program gives same behaviour. I ran it from ultra-edit, same bug.
I ran this "c:\xnview\xnview.exe %1" from batch file inside "c:\in\test\hidden, same bug.
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France

TC is better---

Post by Clo »

:arrow: marsh

:) Hi again !
It is definitely not a TC problem: …
• I think so too…
- I have set "Tree" view in TC (fom the Show Menu), and I can see the whole tree for my test; the hidden sub-dir A9 is shown and it has the appropriate “!” mark (which disappears when you open it, though, a trivial bug I guess…)
- The pic contained in that hidden sub-dir is alright displayed on the opposite panel in the file-list. I can open it here with all means as usual…

¤ I've too an old 2xExplorerZI (I use it to make the TC-updates only :P ).
- Here, the hidden sub-folder is not shown in the tree, same as in the XnView browser, while its content is shown in the file-list, however.
- I can open the file from the file list. Windows issue? But yet, I have always "Show all files" (or so) in Windows settings; 2xExplorerZI uses the Win Explorer core, it has not its own file-managing engine…

:mrgreen: Kind regards,
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice