Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326634 - FileDialog open to select file on RedHat5 and Ubuntu8, it will show hidden files
Summary: FileDialog open to select file on RedHat5 and Ubuntu8, it will show hidden files
Status: CLOSED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-30 03:20 EDT by yanghang CLA
Modified: 2011-01-11 15:43 EST (History)
4 users (show)

See Also:


Attachments
sample code (1.37 KB, text/x-java-source)
2010-09-30 03:22 EDT, yanghang CLA
no flags Details
screen shot (30.12 KB, image/jpeg)
2010-09-30 03:26 EDT, yanghang CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.