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 690783 - "Display item in selection context menu" is not working
"Display item in selection context menu" is not working
Status: RESOLVED FIXED
Product: filemanager-actions
Classification: Other
Component: general
3.2.x
Other Linux
: Normal critical
: ---
Assigned To: Nautilus-actions Maintainer(s)
Nautilus-actions Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2012-12-27 19:07 UTC by entropy
Modified: 2013-01-05 09:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
version (82.17 KB, image/png)
2012-12-28 11:09 UTC, entropy
Details
Command (75.14 KB, image/png)
2012-12-28 11:12 UTC, entropy
Details
Working (71.02 KB, image/png)
2012-12-28 11:12 UTC, entropy
Details
Not_Working (80.23 KB, image/png)
2012-12-28 11:13 UTC, entropy
Details
The-Computer-Desktop-Icon (201 bytes, application/x-desktop)
2012-12-28 18:37 UTC, entropy
Details
Configuration_file_N_A (944 bytes, application/octet-stream)
2012-12-30 23:09 UTC, entropy
Details
Desktop_Action_File (493 bytes, application/x-desktop)
2012-12-30 23:09 UTC, entropy
Details
Your action when only the "Display item in selection context menu" is checked (75.12 KB, image/png)
2013-01-03 20:17 UTC, Pierre Wieser
Details
The context menu when we see your action (246.73 KB, image/png)
2013-01-03 20:19 UTC, Pierre Wieser
Details
Your action when only the "Display item in location context menu" is checked (70.60 KB, image/png)
2013-01-03 20:19 UTC, Pierre Wieser
Details
The context menu when we see your action (231.34 KB, image/png)
2013-01-03 20:24 UTC, Pierre Wieser
Details

Description entropy 2012-12-27 19:07:27 UTC
Your description of the application is not valid:"Nautilus-actions is an extensions for nautilus which allow to add arbitrary program to launch through the nautilus popup menu of selected files.
Each time you right-click on one or several selected files in nautilus, nautilus-actions will look at its configured actions to see if a program has been setup for this selection. If it is the case, it will add an item in the menu that allow you to execute the program on the selected files" Why? Because if I check only the box "Display item in selection context menu" there is nothing of the desired launcher displayed in the right-click menu (apart from the usual "New Folder" etc.). I am actually obliged to check the box "Display item in location context menu" which I do not want to (it creates a submenu in the right click menu). My DE is Gnome 3 and OS Ubuntu 12.10
Comment 1 Pierre Wieser 2012-12-28 09:57:18 UTC
Hi,

Thanks for your interest for Nautilus-Actions, and for having taken the time to fill out this bug report.

If you think the description is invalid or incomplete, feel free to fill out another bug, attaching a patch to the documentation with the new description you are proposing.

"Each time you right-click on one or several selected files in nautilus,
nautilus-actions will look at its configured actions to see if a program has
been setup for this selection. If it is the case, it will add an item in the
menu that allow you to execute the program on the selected files"
-> yes, this is the expected behavior.

"Why ?"
-> why what ?

"Because if I check only the box "Display item in selection context menu" there is
nothing of the desired launcher displayed in the right-click menu (apart from
the usual "New Folder" etc.)"
-> to debug this, please attach your action .desktop file and a copy of the N-A configuration (ideally with a screen of the file-manager, the selected item, the empty submenu)

"I am actually obliged to check the box "Display item in location context menu" which I do not want to (it creates a submenu in the right click menu)."
-> this is normally unrelated, the submenu creation is a configuration option, not an action one (cf. supra for needed infos)

"My DE is Gnome 3 and OS Ubuntu 12.10"
-> please confirm the version of Nautilus-Actions you are running.

Regards
Pierre
Comment 2 entropy 2012-12-28 11:09:56 UTC
Created attachment 232322 [details]
version
Comment 3 entropy 2012-12-28 11:11:12 UTC
"to debug this, please attach your action .desktop file and a copy of the N-A
configuration (ideally with a screen of the file-manager, the selected item,
the empty submenu)"
I don't know what you mean by action .desktop file. I attach the screenshots. Please note that if I check only "Display item in selection context menu" the item is not displayed (the menu contains, from top to bottom, the following: "New Folder", "Paste", "Organize Desktop by Name", "Keep Aligned", "Change Desktop Background" - my item is thus not in the menu). However, if I check "Display item in location context menu", the menu will contain, from top to bottom, the following: "New Folder", "Nautilus-Actions actions" (this is a submenu, it points to two other items > "Create Launcher" (my desired item) and "About Nautilus Actions"), "Paste", "Organize Desktop by Name", "Keep Aligned", "Change Desktop Background". But I do not want the submenu "Nautilus-Actions actions", I want only the "Create Launcher" item to be displayed. I described these in detail because I couldn't create a screenshot of the right-click desktop menu. Please note that the "Create New Document" item is also missing from the menu, and it was present in previous Nautilus versions, which is annoying, why would one like to remove it, since it was so useful???
"please confirm the version of Nautilus-Actions you are running."
Nautilus Actions 3.2.2 as you can see from my screenshot
Comment 4 entropy 2012-12-28 11:12:06 UTC
Created attachment 232324 [details]
Command
Comment 5 entropy 2012-12-28 11:12:48 UTC
Created attachment 232325 [details]
Working
Comment 6 entropy 2012-12-28 11:13:22 UTC
Created attachment 232326 [details]
Not_Working
Comment 7 entropy 2012-12-28 18:37:53 UTC
Created attachment 232346 [details]
The-Computer-Desktop-Icon

Ok...I think I know what you mean by the desktop action file...you can find it attached.
Comment 8 Pierre Wieser 2012-12-30 21:59:16 UTC
Thanks for all this stuff, but I want more :)

Nautilus-Actions stores the actions and the menus (say the items) you create in NACT as .desktop files, which are themselves stored usually (depending of some compilation options) in ~/.local/share/file-manager/actions.
As you have only one action, you will find most probably only one .desktop file in this directory. Please post it.

Do you have read the NACT User's Manual ?

In the menu Edit/Preferences, Runtime preferences tab, there is an checkbox option labelled "Create a root Nautilus-Actions menu". This option is most probably checked in your configuration, thus creating the submenu you don't want. Just uncheck the option if you wish.

Whether your action is displayed when you click on a Nautilus pane (location contect menu) or on a file (selection contect menu) also depends on its characteristics (Mimetype, Folder, etc.)

Also, please post your N-A configuration that you'll find in ~/.config/nautilus-actions/nautilus-actions.conf.

Regards
Pierre
Comment 9 entropy 2012-12-30 23:09:17 UTC
Created attachment 232415 [details]
Configuration_file_N_A
Comment 10 entropy 2012-12-30 23:09:49 UTC
Created attachment 232416 [details]
Desktop_Action_File
Comment 11 entropy 2012-12-30 23:10:16 UTC
Ok. I've posted everything you need.
Comment 12 Pierre Wieser 2013-01-03 20:17:42 UTC
Created attachment 232663 [details]
Your action when only the "Display item in selection context menu" is checked
Comment 13 Pierre Wieser 2013-01-03 20:19:08 UTC
Created attachment 232664 [details]
The context menu when we see your action

As you can see, in my own configuration (N-A 3.2.2, Fedora 17), the action is properly displayed in the context menu when right-clicking on a file.
Comment 14 Pierre Wieser 2013-01-03 20:19:45 UTC
Created attachment 232665 [details]
Your action when only the "Display item in location context menu" is checked
Comment 15 Pierre Wieser 2013-01-03 20:24:50 UTC
Created attachment 232667 [details]
The context menu when we see your action

As you can see, after having unchecked the "Create a root Nautilus-actions menu" in preferences, the action is properly displayed in the context menu when we are right-clicking outside of a Nautilus item (though in another place, due to the way Nautilus builds the context menu).

So, I'm not able to reproduce the behavior you are describing.

To go ahead, I may suggest to activate the debug option in ~/.config/nautilus-actions/nautilus-actions.conf, adding a line

    plugin-menu-log-enabled=true

in the [runtime] section.

This creates very verbose debug logs in your syslog under Nautilus pid. You may want adapt your syslog configuration to actually make these logs not being discarded.

Regards
Pierre
Comment 16 entropy 2013-01-04 21:27:54 UTC
Ok, after unchecking "Create a root Nautilus-actions menu" I can see the submenu has disappeared and I have "Create Launcher" as expected. Thank you, but I still don't know why "Display item in selection context menu" doesn't work".
Comment 17 entropy 2013-01-04 21:49:15 UTC
It's working now, I checked it. Thank you for your help. I'll mark this as solved.
Comment 18 Pierre Wieser 2013-01-04 22:48:35 UTC
Glad to read that !
But for my knowledge, what do you have modified to make it work ?
Comment 19 entropy 2013-01-05 09:44:23 UTC
I just unchecked that box and from that moment onwards the "Display item in selection context menu" magically worked.
Comment 20 entropy 2013-01-05 09:52:41 UTC
I also noted that after I checked that box again (Create root Nautilus-Actions menu), the "Display item in selection context" showed up in that submenu when I selected an item and right-clicked on it. Thank you very much for your help.
Comment 21 entropy 2013-01-05 09:55:07 UTC
*the "Nautilus-Actions" submenu showed up in selection menu after I checked that box (Create root Nautilus-Actions menu) and also checked "Display item in selected context" - to be clear at last.