After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 599913 - Can't add new actions
Can't add new actions
Status: RESOLVED FIXED
Product: filemanager-actions
Classification: Other
Component: general
1.12.x
Other Linux
: Normal major
: ---
Assigned To: Nautilus-actions Maintainer(s)
Nautilus-actions Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2009-10-28 14:45 UTC by Vincent
Modified: 2009-10-29 15:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Nautilus-actions : no possibility of adding new actions (23.62 KB, image/png)
2009-10-28 14:45 UTC, Vincent
Details
output file of nautilus-actions-new (1.41 KB, text/plain)
2009-10-28 14:50 UTC, Vincent
Details

Description Vincent 2009-10-28 14:45:29 UTC
Created attachment 146425 [details]
Nautilus-actions : no possibility of adding new actions

I recently installed nautilus-actions.
It seems like I can't add new actions, for example when I launch
"nautilus-actions-config-tool" I don't have any possibility of adding a new
action (see the screenshot).
I tried to add a new action via the cli (I'm not sure about how do that so it
might be wrong) and it displayed some glib errors. (see the output file)
Comment 1 Vincent 2009-10-28 14:50:41 UTC
Created attachment 146427 [details]
output file of nautilus-actions-new
Comment 2 Pierre Wieser 2009-10-28 15:16:13 UTC
Yes, this is rather boring...

Please, could you specifiy which exact version of Nautilus-Actions you have installed ? And how to you have install it (compiled yourself ? a package ? from where ?)

If compiled yourself, please send the command-line and output log.

Also please specify your GLib and Gtk+ versions.

Regards
Pierre
Comment 3 Vincent 2009-10-28 15:41:59 UTC
Here is the information:
nautilus-actions 1.12.2
installed as a package from my distrib repo (Archlinux)
glib2 2.22.2
gtk2 2.18.3

I hope that this helps.

Thanks
Comment 4 Pierre Wieser 2009-10-28 16:04:10 UTC
Well, you should have a menubar.
Could you try to run nautilus-actions-config-tool from the command-line in a terminal, and send me any stderr/stdout output ?
Comment 5 Pierre Wieser 2009-10-28 16:45:36 UTC
The issue with nautilus-actions-new is another one.
I have to track it and commit a patch. 
Probably this evening...
Comment 6 Pierre Wieser 2009-10-28 18:40:42 UTC
nautilus-actions-new output to stdout is fixed in gnome-2-28 branch
(commit 29262ebb8918ab76b5b2d0a242a713316cfc9ac7).

Also note that writing the new action to a directory requires the directory to be specified as an URI (e.g. file:///tmp). This may have been not enough clear in the command-line help.

No idea at the moment why you don't have a menubar. I'm waiting for output of nautilus-actions-config-tool run from a terminal.

Regards
Pierre
Comment 7 Vincent 2009-10-29 13:35:06 UTC
The output of nautilus-actions-config-tool appears only when I close the window.

"""
> nautilus-actions-config-tool 

(nautilus-actions-config-tool:3040): GLib-GObject-CRITICAL **: g_object_ref: assertion `object->ref_count > 0' failed
"""
Comment 8 Pierre Wieser 2009-10-29 13:51:12 UTC
This doesn't help much - grrr.

Please run and post the output of :

$ nm $(which nautilus-actions-config-tool) | grep nact_imenubar
$ ls -l /usr/share/nautilus-actions/

Also, does the 'Ctrl+N' keyboard accelerator work ? It should create a new action in the user interface...

Could you also send a link to an iso of your exact distrib ? I'll try to reproduce this in a virtual box...

Thanks for your patience
Regards
Pierre
Comment 9 Vincent 2009-10-29 14:01:30 UTC
> nm $(which nautilus-actions-config-tool) | grep nact_imenubar
nm: /usr/bin/nautilus-actions-config-tool: no symbols

> ls -l /usr/share/nautilus-actions/
total 336
-rw-r--r-- 1 root root  13768 oct.  20 23:53 nact-assistant-export.ui
-rw-r--r-- 1 root root    861 oct.  20 23:53 nautilus-actions-config-tool.actions
-rw-r--r-- 1 root root  89810 oct.  20 23:53 nautilus-actions-config-tool.ui
-rw-r--r-- 1 root root 231288 oct.  20 23:53 nautilus-actions.schemas

The 'Ctrl-N' keyboard accelerator works, I can save the actions list with 'Ctrl-S', when I close and start again nautilus-actions-config-tool the actions still here. _But_, when I right click in a folder, there's no actions list, nothing related to nautilus-actions :S ...

For installing archlinux : ftp://mirrors.kernel.org/archlinux/iso/2009.08/archlinux-2009.08-netinstall-i686.iso , mirror selected for the package manager : mir2.archlinuxfr.org (in /etc/pacmand.d/mirrorlist)
Comment 10 Pierre Wieser 2009-10-29 14:23:46 UTC
If the keyboard accelerators work, this means that the menubar is loaded and active, but "just" not visible.

In order to have an action in the Nautilus context menu, you have to meet certain conditions, and do some work :

1/ in the 1.12.x serie, actions apply only to a selection (applying to background folder requires 2.29.1 and later)

2/ only valid actions are displayed in the Nautilus context menu ; an action is valid if it has a non-empty label, a path to an existing executable (see 'Command' tab), filename patterns, mimetype patterns (see 'Conditions' tab) and scheme patterns (see 'Advanced' tab).
At creation time, all these data have suitable default values, _but_ the command itself.
Enter '/bin/ls' in Path entry, save, and you should see your new action in the Nautilus context menu when selecting one file (default condition).
Comment 11 Vincent 2009-10-29 14:52:27 UTC
Thanks a lot!
I just noticed that there is actually a menu when I launch nautilus-actions-config-tool, I'm using "globalmenu" so the menu is displayed in the top bar of the gnome panel.
Sorry for this "false-bug"...
Comment 12 Pierre Wieser 2009-10-29 15:20:58 UTC
Well, this is a great weight off my shoulders as this became to make me crazy ;-)

Not actually a false bug, as output to stdout of nautilus-actions-new was a real one, which has been fixed thanks to you bug report.

Have fun with Nautilus-Actions.
Regards
Pierre