GNOME Bugzilla – Bug 690783
"Display item in selection context menu" is not working
Last modified: 2013-01-05 09:55:07 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
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
Created attachment 232322 [details] version
"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
Created attachment 232324 [details] Command
Created attachment 232325 [details] Working
Created attachment 232326 [details] Not_Working
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.
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
Created attachment 232415 [details] Configuration_file_N_A
Created attachment 232416 [details] Desktop_Action_File
Ok. I've posted everything you need.
Created attachment 232663 [details] Your action when only the "Display item in selection context menu" is checked
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.
Created attachment 232665 [details] Your action when only the "Display item in location context menu" is checked
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
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".
It's working now, I checked it. Thank you for your help. I'll mark this as solved.
Glad to read that ! But for my knowledge, what do you have modified to make it work ?
I just unchecked that box and from that moment onwards the "Display item in selection context menu" magically worked.
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.
*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.