Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 326634

Summary: FileDialog open to select file on RedHat5 and Ubuntu8, it will show hidden files
Product: [Eclipse Project] Platform Reporter: yanghang
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: eclipse.felipe, gheorghe, kleind, mukund
Version: 3.6.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
sample code
none
screen shot none

Description yanghang CLA 2010-09-30 03:20:56 EDT
Build Identifier: SWT3.4.2

Create FileDialog, and use it select file on RedHat5 and Ubuntu8, it can see hidden files 


Reproducible: Always

Steps to Reproduce:
1. on Redhat5 or Ubuntu8, create one empty file,for example name test.txt
2. open and edit the file, it will create one hidden file(test.txt~) under the same folder
3. run sample code, under view the files under the folder

Bug: You will see test.txt and test.txt~ in File Dialog
Comment 1 yanghang CLA 2010-09-30 03:22:59 EDT
Created attachment 179925 [details]
sample code
Comment 2 yanghang CLA 2010-09-30 03:26:43 EDT
Created attachment 179926 [details]
screen shot
Comment 3 David Klein CLA 2011-01-10 17:00:23 EST
Any progress on this yet / can someone take a look?
Comment 4 Felipe Heidrich CLA 2011-01-11 09:43:41 EST
If you open gedit, and use its FileDialog to open a file. Can you see test.txt~ there too. I can.
AFAIK, hidden files in linux are files that start with a ".".

I don't think files ending with a "~" are to be hidden.

Bogdan, do you agree with me ?
Comment 5 Bogdan Gheorghe CLA 2011-01-11 13:31:21 EST
Yup - on Linux to make a file hidden a period must be added to the beginning of the object name. Addin ~ to the file name doesn't make it hidden.
Comment 6 Felipe Heidrich CLA 2011-01-11 15:43:28 EST
Agreed. Closing.