Programming :: Zenity - Hiding Hidden Files From File Selections?
Sep 12, 2010
I'm using zenity 2.28.0 in a bash script (under kde4) to select multiple files in a directory. It works fine, but always defaults to showing hidden files. How can I get it to hide hidden files by default?
I know about toggling them on and off with Ctrl-H, but I would prefer not to have to use that. I have my options set so that dolphin and konqueror do not show hidden files by default. I even tried adding shopt -u dotglob to my script. zenity invocation (extracted from a more complex statement): zenity --title "Select Print Files to Delete" --file-selection --multiple
View 5 Replies
ADVERTISEMENT
Apr 4, 2011
Trying the various settings (and noticing ubuntu gnome users recently had the same exact OPPOSITE problem -- they can't SHOW hidden files in dolphin) to hide my hidden files in dolphin is not working. The settings are saved OK, but those damn (ending in tilde, ie "~") files do NOT ever hide! I even see the correct little green recycling symbol on them, indicating they're identified as such, but no actual hiding goes on..
Nautilus, which I've used before (but have grown tired of, and was looking forward to dolphin), also has a weird issue that seems to have appeared with FC13 (I'd been using FC12 'til now mostly because of this) - there's no way (AFAIK) to tell it to show the location; to see it, you have to click Go->Location each time. Previously I could set it to print out the whole file or server path and it would stay that way when I opened new windows.. This is on fresh install & update.. kernel is 2.6.35.11-83.fc14.x86_64.
View 1 Replies
View Related
Jul 22, 2010
I'm trying to use zenity in a bash script to display a .csv file using '--list' to allow the user to edit some of the values.I can display it fine but i'm unsure how to edit the data? all i can get is whichever line is highlited when hitting ok on the zenity dialog to print.the data in the csv is arranged:
<prod>,<disc>,<qty>,<type>,<location>
View 1 Replies
View Related
Feb 15, 2010
How to list only hidden files in current directory ?
View 2 Replies
View Related
Oct 18, 2010
Lets start with useful information:I need to create a hidden file for windows/linux using my c++ program.The file will be created on a mp3 player (fat32 file system) and the name will be ".myFile", so the file will appear hidden onux system (period before the name).The problem:Using windows I'm able to see this file, cause the "hidden" attribute is not set.
On Windows API there's a function to do that (CreateFile), then I was trying to find a compatible function to set the hidden attribute, but there's no success until now.Could someone show me the way? There's a program to change these attributes: mattribI will try (again) to find the source code, if someone knows where could I find it
View 2 Replies
View Related
Mar 28, 2011
I am trying to understnd where java preferences are stored based on web search I understand they are somewhat like windows registry - stored out there somewhere. web suggested things like hidden files or directories - and i've look all over th eplace withour result on Fedora 14. trying to start a program. got part way in and had given some info and then it blew. it still remembers my iput - which may have been wrong. ive looked at code and see it uses the java preferences system - wpould like to find and erase.
View 2 Replies
View Related
May 27, 2010
Where is the config file for the sftp bit? At the mo it shows all the hiddenfiles (dot) and I don't want it too. Don't laugh, I have just configured my proftp for this, and realised, hang on this isn't the program that dishs out sftp!
View 1 Replies
View Related
Dec 10, 2010
On both my 32-bit laptop (openSUSE 11.3) and my 64-bit desktop (openSUSE 11.2) I have been unable to find out how to prevent seeing all the "hidden files" when opening files in many applications, including (for example) GIMP, Xournal, OpenOffice, gedit.In the Control Centre "File management" options "Show hidden and backup files" is NOT checked in "File Management Preferences.
View 2 Replies
View Related
Mar 18, 2010
i have two scripts called: type & selecttype. In type i have only the name of the products ex.: product1 & product2. Now, i am going to ADD product3 which includes productA, productB, productC, productD, productE, productF. so my new type script (menu) looks as below:
1) product1
2) product2
3) product3
and my current selectype looks as below ( which is set only for product1 & product2)my question is how can include the new product3 with all other multiple selections (productA, productB, productC, productD, productE, productF) into my current selectype as below:
#!/bin/sh
echo SELECTTYPE
export -n selecttypechoice
[code].........
View 5 Replies
View Related
Mar 19, 2010
i have two scripts called:
"type" & "selecttype".
In "type" i have only the name of the products ex.: product1 & product2. Now, i have to ADD product3 which includes sub categories: productA, productB, productC, productD, productE, productF. so my New type script (menu) looks as below:
1) product1
2) product2
3) product3
and my current selectype looks how can I add the new product3 argument with all other multiple selections (productA, productB, productC, productD, productE, productF) into my current selectype (as below which is set only for product1 & product2), so when a user select: 3) product3 from "type" would get a new menu of all the sub categories, and the script would process the new additional arguments.
Here is the copy of my selectype script:
#!/bin/sh
echo SELECTTYPE
export -n selecttypechoice
if [ "${upgrade}" == "yes" ] ; then
[code]....
View 5 Replies
View Related
Apr 14, 2011
I am busy writing this script to get a pixel count of a large batch of images in a directory for a research project. To do this I'm using a loop to get all the images in the directory. To make the whole procedure more user friendly for some colleagues I decided to use zenity, something I haven't yet really worked with. As not to make sure that the users don't have to watch to this blank screen during the actual processing of the images I'm trying to get the zenity progress bar working. So far the progress bar comes up but instead of changing over time it stays "empty" till all the images are processed and then becomes 100% when all images are done. What servers my needs for now, but since I am trying to learn more about zenity I was wondering how I could change the script to get the progress bar properly working? Below is the piece of script I am talking about.
Code:
cd $input #goto path of image directory
(for a in *jpg *JPG *jpeg *JPEG; do
if [ -f "$a" ]; then #was it a image file
b="$a" #set b to $a
convert -resize 1000x1000! ${b} -depth 1 -format %c histogram:info:$b.txt #get pixelcount and write to .txt file
fi
done) | zenity --progress
View 2 Replies
View Related
May 18, 2011
explanation what I want to do exactly:I have a textfile which looks for instance like this:
file.txt:
...
something=else to do
[code]....
View 14 Replies
View Related
Apr 9, 2010
Awhile back, PabloTwo pointed me to zenity as a way to create bash scripts with changeable parameters. That thread is here, for anyone interested in reading about it: [URL] Anyway, my problem is that I'm trying to capture input that contains double-dashes ("--") but zenity (or maybe or it's bash???) complains with the following error message:
"This option is not available. for all possible usages.
bash: [/code]: No such file or directory"
Here's an example of what I'm doing:
Code:
# Select the time of day
Flytime=`zenity --list --text="Select the Time" --radiolist --height=300 --width=300 --hide-column=2 --column="Select" --column="Code" --column="Time of Day"
"" "--timeofday=real" "Local Time"
[code]....
What I want to accomplish is for the variable $Flytime to contain either "--timeofday=real" or "--timeofday=dawn" (without the quotes) depending upon which radio button is selected. I have tried escaping "--timeofday" (e.g. "--timeofday" and even "--timeofday") but that's not working.
View 3 Replies
View Related
Oct 22, 2010
After stumbling across how to do this, then losing it and only after a long search finally re-discovering this little documented feature, I've decided it's likely worth posting.
Basic Concept of Hidden Files in Unix
In Linux filesystems, anything with a leading period (files or folders) is considered to be hidden and viewable only with an "all" option using whatever utility to list the files. Unfortunately, this may not be sufficient to clear the clutter in today's world.
KDE enhanced hidden file support, Why
As a Desktop that sits on top of Linux, KDE supports the basicLinux hidden files/folders convention using the leading period in applications like File Managers (eg Dolphin).
But, what about other files? An example of another file type a User won't likely want to list is the backup file that is created with a trailing tilde (~) whenever a document is modified. This would especially be true if files are dropped into the Folderview widget on the KDE Plasma Desktop, potentially up to half of all the space would be occupied by these undesirable files.
In KDE, you can now hide any definable filetype, re-claiming space and making file/folder listing more efficient.
KDE enhanced hidden file support, How
This feature seems to be hidden in a corner and not configurable in any main file management tool like Dolphin or the KDE management utilities and so far I haven't found it in Google, the KDE website or any other place.
It's only configurable in the KDE Folder Widget properties.
First, unlock widgets on your Desktop if necessary (Is unlocked by default).
1. Either rt-click in the open space of an existing Folder View Widget or add a new Widget to your desktop by
Rt-click desktop > Add Widgets > Folder View Widget (Drag to Desktop) > rt-click on empty space in new Folder View Widget >
2. After rt-clicking on the Folder View Widget, select Folder View Settings
3. Modify Location to point to one of the three location types... The Desktop folder itself, a pre-configured (by KDE) "Place" or a custom folder of your choice. The first choice is OK if you don't already have something else in mind and you just need one Folder View.
4. In the Navigation Pane on the left, click on "Filter."
5. In the top dropdown, select "Hide Files Matching"
6. In the bottom "File Types" input box (Not the middle box), type your pattern in my example the tilde (~), and you will see the backup file type already defined.
7. Make sure the backup file type is checked, and click "OK" which saves changes and closes the Folder Settings window.
8. Check your nandiwork. Drop a new file if needed into the Folder View Widget, modify the contents and save. Open your KDE File manager to the location of your Folder View Widget and list the contents. In both cases you should not see your backup files unless you select the option to view hidden files.
When you've finished modifying your Desktop's widgets, don't forget to lock the widgets to guard against accidental loss.
View 7 Replies
View Related
Mar 29, 2011
I have this simple code written in python:
Code:
import os
os.system("xterm -e 'ls /usr/lib'")
Is there anyway I can hide the xterm window that is opening ?
View 7 Replies
View Related
May 5, 2011
I installed Minecraft and I want to hide the .JAR extension on the file on my desktop. I tried just renaming it and deleting the ".jar" from the name, but when I tried opening it, it opened as an archive, rather than an executable, even though I had the "Allow executing file as program." box checked off. What can I do to hide the extension?
View 1 Replies
View Related
Jun 19, 2010
I want to be able to hide things so that they do not show up when show hidden files is pressed. Maybe something like a file that you can only get to by already knowing its location?
View 3 Replies
View Related
Feb 1, 2011
While googling for soft link and hard link i found this part
Code:
{
FILE *fp;
fp = fopen("some.hidden.file","w");
unlink("some.hidden.file"); /* deletes the filename part */
/* some.hidden.file no longer has a filename and is truely hidden */
fprintf(fp,"This data won't be found
"); /* access the data part */
[Code]...
View 9 Replies
View Related
Mar 9, 2011
I have a Kingston 8gb Datatraveler that has been giving me troubles lately. For some reason after I delete files from it it still shows up as full and the files are shown in the hidden trash files. How do I get rid of these files? I can't delete them as they just show back up. Also, I tried to format the drive with gparted and it won't unmount. When I right click and select information, at the bottom it says: Unable to find mount point. Unable to read the contents of the file system. Because of this, some operations may be unavailable.
View 1 Replies
View Related
May 17, 2010
Ubuntu 10.04
I want to copy all directories, files, and hidden files and hidden directories with one command. I want these items to replace any same items in the target directory.
I have tried several things, such as:
cp -r *
cp -aR *
but I only seem to get visible files and directories. Obviously, I am missing something. (A brain, probably....)
View 9 Replies
View Related
Feb 15, 2011
I will have to code this. However I am lacking of time since I have too much to do. make a short code bash/dash to prompt the country with Zenity, then, get the PLS or m3u url and prompt with another zenity which radio to play. http://www.listenlive.eu/index.html
My code to get url's radio country.htm is:
Code:
View 2 Replies
View Related
Mar 16, 2011
10.04 LTS: Is there a way to hide an icon of a mounted file system from the GNOME desktop?
View 8 Replies
View Related
Jan 26, 2010
I've got a collection of MP3 files, but sometimes I stumble across a double file in Rhythmbox. At first, I thought they were the real files, but after trying to fix the tags (artist names were incorrect or missing) in tag editor, I didn't see any change in the files in Rhythmbox.
This made me search for the album in which the files were (in Rhythmbox). I found out that these incorrectly named files were doubles, but they didn't show in the actual folder.
So, I deduced, They had to be fakes. I threw the doubles in the trash bin, and there it was. They were hidden files (with a dot in front).
How can I find all these hidden files, so I can remove them?
View 3 Replies
View Related
Jul 25, 2011
How would I rename all files with a leading decimal point recursivley? I some how got all my music files to have a decimal point.I tried the below and got a " sed argument to long".[CODE]find /media/MUSIC -type f -name "*.wma" | xargs -0 sed -i 's/.(.*)/1/'[CODE]
Another question, can i just use -type f with out -name ? I am sure that all the files got the decimal point added as the first character.
View 14 Replies
View Related
Mar 10, 2011
This really doesn't make sense to me:
View 9 Replies
View Related
May 12, 2010
Doing "ls -a" provides a listing of the hidden files.To process all the .bak files you can do *.bak for:
that.bak
this.bak
But how do you process all the hidden files like:
.that.bak
.this.bak
What is the equivalent of *.bak for only the hidden files?
View 6 Replies
View Related
Feb 10, 2011
What should do? Or how to delete that I have 2 hidden in my PC?
I know nothing that's why please tell me detail if some one know about it?
View 5 Replies
View Related
Feb 15, 2010
how to list only hidden files in current directory ?
View 7 Replies
View Related
May 6, 2010
just a general weirdness, but some folders that are in my /home folder don't show up. if i check "show hidden folders", they still don't show up. for all terms and purposes, they are simply not there. however, if i search for them through the search tool, or beagle, they show up as being in my /home folder. so, anyone have any idea how this happened, or how i can remedy this?
View 9 Replies
View Related
Oct 9, 2009
First is this:Whenever I open a file through - say - Open Office, the list of files I get shown automatically also show all the hidden files. Right click -> uncheck hidden files does the trick only for one session. If I hit Open again, they're shown again. How can I set it to not show hidden files by default in the 'open file' dialogue (for all apps)?Second is this:Under preferences, there's an item called 'preferred applications'. This is great, and works ok, but is way too general for me. How can I set that files with certain extensions always open with one app, and files with another extension always open with another app.
View 1 Replies
View Related