nautilus

FUSE filesystem hide from nautilus

好久不见. 提交于 2019-12-25 04:17:15
问题 I have written a FUSE driver for linux, and when I mount it I get an entry in the nautilus sidebar. I do not want this - the unmount button doesnt even work. I would like to hide this entry in the nautilus sidebar for my mounted fuse filesystem. I dont want to add it to the fstab because running it as root opens security holes. Is there anything I can add to the options line or the code itself to prevent it from showing in nautilus? 回答1: I believe Nautilus will only show those sidebar entries

Can't run executables from nautilus

守給你的承諾、 提交于 2019-12-23 05:17:59
问题 (the warning that shows up) On Ubuntu 18.04, I compiled a c++ sample which only included stdio.h and an empty main function using g++ test.cpp -o test . No errors popped up and I had no issues running it from the terminal. However, once I go on nautilus and try to run it by clicking on test , a warning pops up, asking me to pick a program to open the shared library. How do I make sure the program is compiled as an executable/ is seen as an executable by the file manager? Edit: stat output on

How to execute a Nautilus script written in Python inside a gnome-terminal window that stays open?

百般思念 提交于 2019-12-13 03:14:49
问题 Lets say I want to execute a simple Python script from Nautilus , the default file manager of GNOME : #!/usr/bin/python3 print("Hello") Of course the aim is to interact with selected files in Nautilus , but I want to keep it simple. I save the script to the folder ~/.local/share/nautilus/scripts/ and then I can execute it from the right click context menu: How can I execute this nautilus script inside gnome-terminal and keep the terminal opened at the end of the script? 回答1: I have found that

Where to find information about Nautilus D-Bus interface

孤人 提交于 2019-12-12 20:48:01
问题 I am planning to develop a command line application that interact with Nautilus, but I cannot find a reference for the D-Bus interface that Nautilus exposes. 回答1: For the time being, the only DBUS interface that nautilus implements is this: http://www.freedesktop.org/wiki/Specifications/file-manager-interface/ 回答2: Although I haven't found any doc on this either, at least you can use sth like d-feet to find out what interface/method/etc. nautilus has. (and I don't think there are a lot of

ssh tunneling for sftp or GUI

假装没事ソ 提交于 2019-12-12 08:17:43
问题 I am trying to use sftp over an ssh tunnel I have a homePC , that can use a gatewayPC as a jump host to login to a remoteserver i use the ssh tunnel command $ssh -t userid@gateway ssh remoteserver from homePC and it worked great However, I would like to open a nautilus or any other file manager once I am logged into the other machine one option is to be able to sftp or ftp over this tunnel Are there GUI based tools like putty for windows in order to make this happen? Any help is appreciated

Gnome files Nautilus context menu “Open with” application list

流过昼夜 提交于 2019-12-08 01:49:34
问题 I am using Gnome with Archlinux. My default file manager is Nautilus. How add recommended apps in "right-click" menu . (Ubuntu-like) They listed only, when i click "Open with other Application" But it's too long! 回答1: To install nautilus-action on Ubuntu, run simply this command via the Terminal: sudo apt-get install nautilus-actions (or equivalant packet manager as yum or pacman) After the installation is complete, let's now see a quick example of how to add an extra action to the right

Gtk Ckipboard: pasting files from a source with custom URI scheme

这一生的挚爱 提交于 2019-12-08 00:00:06
问题 I'm trying to write a a GTK/C application that puts some files on the Gtk clipboard, so a user with Nautilus will be able to paste them. There is a good example of Gtk Clipboard local file copy and paste on stackoverflow. Unofrtunately the files I need to paste are not on the local disk, and cannot be accessed via a standard GVFS URI scheme like file:// Only my application can access these source file after setting up a TCP connection, authenticating and opening an extra channel. How can I

ImportError: No module named gi.repository

自古美人都是妖i 提交于 2019-12-07 01:46:59
问题 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 <module> from gi.repository import Nautilus, GObject ImportError: No module named gi.repository I installed python-gobject-dev , python-gobject , python-nautilus , but it didn't help. Has anyone had this problem? 回答1: 10.04? That's pre-GNOME 3, so the preferred Python bindings were based on PyGTK, not PyGObject. You

Escape whitespace in paths using nautilus script

拥有回忆 提交于 2019-12-06 11:33:47
问题 I didn't think this would be as tricky as it turned out to be, but here I am. I'm trying to write a Nautilus script in Python to upload one or more images to Imgur just by selecting and right clicking them. It works well enough with both single images and multiple images - as long as they don't contain any whitespace. In fact, you can upload a single image containing whitespace, just not multiple ones. The problem is that NAUTILUS_SCRIPT_SELECTED_FILE_PATHS returns all the selected files and

Gnome files Nautilus context menu “Open with” application list

六月ゝ 毕业季﹏ 提交于 2019-12-06 04:28:52
I am using Gnome with Archlinux. My default file manager is Nautilus. How add recommended apps in "right-click" menu . (Ubuntu-like) They listed only, when i click "Open with other Application" But it's too long! To install nautilus-action on Ubuntu, run simply this command via the Terminal: sudo apt-get install nautilus-actions (or equivalant packet manager as yum or pacman) After the installation is complete, let's now see a quick example of how to add an extra action to the right-click menu with nautilus-actions. The example consists of adding to the right-click menu the "Edit With Gimp"