0
votes
2answers
64 views

Rename files in subfolders with parent folder names

I have a main directory that has four folders f1, f2, f3 and f4 each of these folders has 10 folders, and each of these 10 folders ff1...ff10 has some .jpeg images with some names lets say image1.... ...
4
votes
1answer
98 views

Use custom command to open files

gedit application is set as default application for text files. Supposing I have a script with execution rights in /usr/bin, how can I set that script to be run when I open a text file using Nautilus ...
1
vote
1answer
56 views

How can I get a file's UbuntuOne URL from the terminal?

How can I get the UbuntuOne URL from a file in a bash script? Here's what my script does so far: I run the script via Nautilus Actions, and it requires one parameter and an URL in the clipboard. The ...
3
votes
1answer
217 views

Is it possible to add an option to the context menu in nautilus to open media in an existing VLC instance?

I've unchecked VLC's option - 'only allow one instance', since it would help simultaneous playbacks. But sometimes it is desirable to just open a new file in the already running one. Is it possible to ...
1
vote
1answer
74 views

how to list opened nautilus tabs with qdbus?

I am trying to dig into qdbus for nautilus to get a list of opened tabs; I managed to do this so far: sites=(`qdbus |grep nautilus -i`); for siteSrc in ${sites[@]};do list=(`qdbus $siteSrc`); for ...
0
votes
2answers
199 views

Archive manager started instead of executing a shell-script

When I double click on a .sh (the file is executable) file in Nautilus the archive manager is started instead of executing the script. How can I make Nautilus show the dialog (execute/edit/...) again? ...
2
votes
0answers
167 views

How do I upload pictures to picasa using Nautilus scripts?

I'm looking for a Nautilis script to upload a picture to a Picasa Album using GoogleCL Here is my script : zenity --info --title "File" --text "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" --height 18 ...
1
vote
2answers
2k views

Why doesnt the “Script” option show up on right clicking in the desktop in Ubuntu 12.10? How to make it appear?

When you right click on a Linux desktop, a menu appears which contains entries like "New folder", "Change desktop background", "Paste", "Scripts", etc. But on a fresh install in Ubuntu 12.10, the ...
11
votes
2answers
954 views

How can I programmatically change a file's icon?

If I select an icon in Nautilus and select Properties, I can click on the icon presented there. This gives me a file-chooser dialog to select a new icon image. I would like to do this via a script of ...
7
votes
2answers
7k views

How to change default action when running a .sh file?

Every time I want to run a .sh file, Ubuntu asks whether I want to Run in Terminal/Display/Run it. Is there a way to set default action for some sh files? -- I am using Ubuntu 12.04 without any ...
1
vote
1answer
123 views

Fix Nautilus URIs in a Python script

I have a very basic Python script I wrote mostly for learning purposes. It opens a terminal in the current folder. However, I can't get it to work in folders with accented characters in the URI ...
2
votes
1answer
1k views

How to keep Unity panel always on top? [closed]

I am working on a script that will allow you to use a video as a wallpaper. This script uses xwinwrap and mplayer, when i have the script running the video is shown as a wallpaper and with ...
8
votes
3answers
2k views

How can I add a script to nautilus for running selected file as administrator?

How can I add a script to nautilus for running selected file as administrator (not open as administrator)? And if it is possible, I want to run this file as administrator without entering my password. ...
17
votes
3answers
932 views

How can I initiate Nautilus file operations from the command line?

How can I start Nautilus's "File Operations" GUI from the command line? My goal is to include this in a Nautilus script.
1
vote
1answer
612 views

Nautilus Open in Remote Terminal

As I already wrote, open-in-erminal package does not work for remote hosts for me Nautilus "open in remote teminal" fails after login. So I decided to try to write my own script to do same ...
4
votes
1answer
1k views

How can I get a set of files into the Zeitgeist index for dash access?

I understand, based on a number of other sources, that files will not appear in a dash search until they have been opened, due to the search drawing from zeitgeist. As an example, this is ...
1
vote
2answers
197 views

How to add a contextual menu item to .psd files in Nautilus?

How to add a contextual menu item to .psd files in Nautilus? The menu item would execute a script and pass it the path of the file.
3
votes
2answers
238 views

Automatic desktop/work environment setup

I have this strange thing I am trying to do, so before I jump into it I was curious if someone knows about existing solution or maybe have an advice as far as implementation. I run a small software ...
14
votes
2answers
2k views

How can I write Nautilus scripts in Python?

I want to write a Nautilus script in Python. Is that possible? If it is possible, how can I do that?
1
vote
2answers
424 views

Nautilus doesn't show my desktop until I kill it

Something's wrong with nautilus. When I boot my computer and it logs in, Gnome shows, things are running, I can run programs and everything, but my desktop has no icons. I have to open a terminal and ...
1
vote
3answers
484 views

How can I manage saved complete web pages and their directories (e.g n.html and n_files) in Nautilus

Using an arbitrary web browser, e.g. firefox, you can save a web page (complete web page), for which it saves the html file, say n.html, and web page elements in a corresponding directory, n_files. ...