Questions tagged [nautilus]

Nautilus is the official file manager and desktop shell for the GNOME desktop. Nautilus is is extensible via C and Python.

Nautilus is the official file manager and desktop shell for the GNOME desktop. Nautilus is extensible via C and Python.

139 questions
12
votes
1 answer

How can I associate a certain file type again with "View file"

After installing a fresh Ubuntu (13.04) pem files (SSL certificates) are associated with "View file" (right click the file in Nautilus I see "Open with View file"), which nicely shows a clear text version of the certificate. Now I wanted to edit…
gucki
  • 4,250
  • 7
  • 37
  • 53
11
votes
6 answers

ImportError: No module named gi.repository

I'm trying to launch python script on Ubuntu 10.04: from gi.repository import Nautilus, GObject It doesn't work: Traceback (most recent call last): File "script.py", line 1, in from gi.repository import Nautilus, GObject …
user3617166
  • 111
  • 1
  • 1
  • 3
10
votes
1 answer

How to create nautilus C extensions

I'm trying to create a Nautilus extension in C, but there are just Python examples and helps. Almost no documentation and literally no examples, but just some complete extensions which are long and hard to understand for a beginner. I need just a…
Stefano d'Antonio
  • 5,164
  • 2
  • 25
  • 42
10
votes
3 answers

Electron executable not recognized by Nautilus

I'm not able to build an executable file of an Electron App with the following command: electron-packager . electron-tutorial-app --overwrite --asar=true --platform=linux --arch=x64 --prune=true --out=release-builds The build file, which is a…
Catalyst
  • 357
  • 4
  • 12
8
votes
1 answer

Edit original Nautilus context menu

Does anyone know a way to simplify the standard context (right click) menu in Nautilus? I am making a very simplified interface for people who don't use computers very often, and I want to use Nautilus as File Manager. I have added some actions to…
Thibaut
  • 2,280
  • 1
  • 14
  • 26
7
votes
1 answer

gtk_icon_theme_get_for_screen error for nautilus

Recently i have updated the ubuntu 14.04 to Ubuntu 15.04. Usually nautilus . command should open the directory in GUI.However, now i am getting the error like below. What is the recent for that and any solution to solve…
Vanji
  • 1,686
  • 14
  • 23
7
votes
2 answers

How to change icon/emblem of a directory from bash

I'm playing around with get_iplayer (fantastic) it's running every few hours to grab any new episodes of whatever.... After it has finished grabbing anything new i'd like to change the emblem of ~/Videos to add a plus or star (nautilus emblem…
Question Mark
  • 3,546
  • 1
  • 23
  • 30
6
votes
3 answers

How to run Python script with one icon click?

Sorry, for the vague question, don't know actually how to ask this nor the rightful terminologies for it. How to run a python script/bytecode/.pyc (any compiled python code) without going through the terminal. Basically on Nautilus: "on double…
A. K. Tolentino
  • 1,614
  • 1
  • 20
  • 30
6
votes
4 answers

Hiding a mounted device in nautilus

I am running Ubuntu Precise. In my /etc/init.d I have a bash script that, does the following on startup: loop mounts an image on an NTFS drive. That image contains an ext2 file system with a directory named home It then does a mount with a --rbind…
Wes
  • 311
  • 2
  • 11
5
votes
1 answer

Ssh(sftp) with certificate via Nautilus in Ubuntu 10.10

Before I connected to my server via Nautilus (sftp). Now I moved to Amazon EC2, and there's just one way connect to server (ubuntu 10.10 too), using ssh -i mycert.pem, no password, just certificate. How can I connect to the server using Nautilus,…
Valentin Kantor
  • 1,543
  • 1
  • 21
  • 26
5
votes
1 answer

Is it possible to get the directory of a specific nautilus window in a script?

I would like to build a Python script that checks if a specific directory is open in nautilus. So far the best solution I have is to use wmctrl -lxp to list all windows, which gives me output like this: 0x0323d584 0 1006 nautilus.Nautilus …
Erotemic
  • 3,688
  • 4
  • 28
  • 59
5
votes
5 answers

Methods to debug Ubuntu Nautilus scripts written in Python

When writing a Nautilus Script (e.g. using Python), I currently am aware of two methods for basic debugging: Using (e.g. Zenity) pop-up windows as "print" statements. Capturing stderr and stdout in text files for later reference. These methods…
whichone
  • 71
  • 4
5
votes
1 answer

Python-nautilus : add custom emblems (overlay icon)

I use the python-nautilus module, and I try to add a custom emblem (an icon overlay), like that: But I didn't found anything about that. I'm able to add an existing emblem like "multimedia" with this code: import os.path from gi.repository import…
Slot
  • 739
  • 2
  • 10
  • 23
4
votes
3 answers

Add a custom option in Nautilus right click menu

When a user right-click on a folder in Nautilus, a menu appears. I want to add more options in that menu. I am using Gnome 3. Is there any other way to customize that menu with command line? Actually I am making a Linux software and I want that…
PRATEEK AGRAWAL
  • 149
  • 2
  • 14
4
votes
1 answer

use gtk in a nautilus extension using python

The following code import gtk import nautilus import os def alert(message): """A function to debug""" dialog = gtk.MessageDialog(None, gtk.DIALOG_MODAL, gtk.MESSAGE_INFO, gtk.BUTTONS_CLOSE, message) dialog.run() …
Nils
  • 8,559
  • 3
  • 40
  • 68
1
2 3
9 10