Linux right click menu

Linux Mint Forums

[SOLVED] Adding right-click context-menu items?

Forum rules
There are no such things as «stupid» questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

[SOLVED] Adding right-click context-menu items?

Post by Subhuti » Wed Feb 21, 2018 1:52 pm

I have just installed Linux Mint CInnamon on a USB, and am trying to explorer and decide if I can switch to this from Windows at some point.

I have a general question about Linux GUIs:

I am okay about learning about using the command line interface for some things, as I already like to automate many things with batch-files in Windows. But for random, non-automated processes, I like to have graphical programs to do operations quickly.

For example, if I want the sha-256 hashes of all files in a folder and its subfolders, I guess it’s fine to run a script to run sha256hash or whatever the linux utility for doing that is called.

But if I am working on something, shifting from folder to folder, and come to a point where I suddenly need to get a sha-256 hash for a file, in Windows, I can just right click on the file, and choose «CRC SHA» from the context-menu, which is an option added when one installs the compression archiving utility 7zip.

This is quite time saving instead of having to open the prompt, cd to that folder, and type out a long commandline, just to achieve the same result.

You can say it’s a sign of laziness, or whatever, but I have come to work in that way. That small tasks like these are easy to call up and get done through right-click context menu options, so I can concentrate my effort on bigger tasks.

Is that possible to add functionality like that to the Linux GUIs like Mint, or am I limited to having to do everything on the CLI?

And do graphical programs exist for small things, such as SHA-hashing, or are they all command-line programs? I guess that wouldn’t be a problem, if it can be integrated into the right-clicking menus, and if it is easy to copy the output using the mouse.

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 3 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

Moem Level 22
Posts: 15625 Joined: Tue Nov 17, 2015 9:14 am Location: The Netherlands Contact:

Читайте также:  Linux своя bash команда

Re: Adding right-click context-menu items?

Post by Moem » Wed Feb 21, 2018 1:56 pm

Subhuti wrote: ⤴ Wed Feb 21, 2018 1:52 pm do graphical programs exist for small things, such as SHA-hashing

Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!

killer de bug Level 14
Posts: 5364 Joined: Tue Jul 08, 2008 1:49 pm Location: Leuven, Belgium

Re: Adding right-click context-menu items?

Post by killer de bug » Wed Feb 21, 2018 2:00 pm

You can add actions in Nemo, and then you will see them in the contextual menu.
There is already such an action for checking the SHA sum of an iso file. You can customize it a little to get it running for all files.

[Nemo Action] Active=true Name=Check SHA256 Name[de]=Prüfe SHA256-Hash Name[fr]=Vérifier le SHA256 Comment=Check the SHA256 signature of the file Comment[de]=Prüfe den SHA256-Hash der Datei Comment[fr]=Vérifier la signature SHA256 de ce fichier Exec=mint-sha256sum '%F' Icon-Name=gtk-execute Selection=S Mimetypes=application/x-iso9660-image;

This is the content of mint-sha256sum.nemo_action located in /usr/share/nemo/actions/

You should browse this folder to learn more about actions.
If you want to create your own actions, store them in: ~/.local/share/nemo/actions (this is a folder in your home folder).

Re: Adding right-click context-menu items?

Post by Pat D » Wed Feb 21, 2018 2:25 pm

I found this in my «How To» bookmarks — I guess I forgot about it.
I haven’t done it myself, but maybe it’s what your looking for:

Re: Adding right-click context-menu items?

Post by Subhuti » Fri Mar 02, 2018 12:50 pm

Thank you so much! That’s great. I tried that stuff with the CRC, and it worked just great! That’s a relief.

I’d like to ask whether there is also a way of enabling right-click dragging a file to a destination?

One of my favourite time-saving things which was introduced to Windows at some point (I think it might have been Windows XP), was the ability to right-click drag a file to another folder. If you drag a selected file or group of files with the right-button down, when you release the button, a small window appears asking you if you want to copy or move the files there. If you have installed the compression-software 7Zip, there is also an option allowing you to extract an archive to the destination (if it is an archive), or to add the files to an archive at the destination (if the file is not an archive).

For mundane tasks like this, it’s really nice to save some steps which can become a bit tedious in the long run. Instead of selecting a file, right-clicking, selecting copy, clicking on another window, selecting the folder-window, right-clicking, selecting paste, then the operations become reduced to right-clicking while dragging, releasing button, and selecting copy. Subjectively, it seems like a lot less work, and it is certainly much faster in many cases.

Читайте также:  Изменить фон linux mint

I really missed that when I tried Mint Cinnamon. Is this «missing» feature something do with Cinnamon or with the Nemo file-manager. Can it be altered by selecting a different file-manager, or does one have to select a different UI, like Mate, xcfe or KDE?

Or is this a behaviour by the system which can be altered by changing the contents of some files, like it was in the case of my question about adding menu items to context menus?

Источник

How to Enable the Desktop Right-Click menu in Gnome Shell?

Unlike with the classic version, the ‘new’ Gnome Shell does not come with a desktop right click menu. In the past, when you right click on the desktop, you could create a folder, document, copy-paste files or change the desktop background etc. But when you right click on the Gnome 3 desktop, nothing happens, why? because it’s disabled.

Now I’m not even gonna talk about this because to be honest, after trying the latest Fedora 17, I’m a bit pissed. Everyone said it’s so cool and gives you a ‘pure’ Gnome Shell experience … and you know what, they’re right about that ‘pure Gnome Shell experience’ thing because the entire OS behaves so much like Gnome Shell and gives you (or at least to me) a little taste of ‘hell’.

For example, the fonts look really ugly and there’s no way you can change them (unless you install ‘gnome-tweak-tool’ which requires an Internet connection) and it makes windows and menu’s look pretty big under my ‘decent’ 1366×768 resolution, where both Unity and Windows 7 look great!.

The default software manager too sucks when comparing with Debian’s awesome and powerful apt-get based ‘Synaptic’ because I searched for ‘pdf viewer’ in it, and it gave me a huge number of totally irrelevant results (not for just that term, the index is not polished in general), the installer’s user interface (aka ‘Anaconda’) looked like a 5 year old’s drawing (unusually big, looks cluttered etc), having issues while using the administrator password as sometimes the screen seems to be stuck etc etc.

If you’re someone who love Fedora, then I hope that my words have not offend your or anything, but, in my personal opinion ( I’ve been using Fedora even before it became Fedora, haven’t used a lot of recent releases to be honest), with both Fedora and Gnome (they have a pretty close relationship/characteristics), nothing has changed!.

The way I see Fedora is that, most of those people behind its community aren’t concerned about the ‘collective freedom’ but only the freedom of their own. They’re just so good at driving away most users who’re new to GNU/Linux and doing some heavy damages to the GNU/Linux platform in general.

Читайте также:  Fixing mbr in linux

Specially if you’re coming from an OS platform like MS Windows for instance, then the combined arrogance of both Fedora and Gnome can do a lot of damages/frustrations, wouldn’t you say?

Okay. That’s that! (had to let it out).

Anyhow, if you miss that good old desktop right click menu in Gnome 3/Shell, then you can easily get it back thanks to the awesome ‘gnome-tweak-tool’. Again, when considered the user friendliness (or customizations) that this simple tool can give you, one cannot think of nothing but pure ignorance as the only reason why Gnome doesn’t ship with it by default.

So folks, if you use Gnome Shell under Ubuntu/Debian, then enter the below command to install this tool.

sudo apt-get install gnome-tweak-tool

If you use Fedora 16 or 17, then enter the below command instead.

Once the installation completes, search for ‘gnome tweak tool’ in the Activities Overview window and open it.

Step 3: Now from the left, click on the option called ‘Desktop‘ and then to your right side under the option called ‘Have file manager handle the desktop‘, you’ll see a small slider. Move that slider to the right-side to enable it, as shown in the below screenshot.

As soon as you do this, you should get the desktop right click back! (including the Computer, Home and Trash icons). If you don’t like those icons, then you can use the options below ‘Have the file manager …’ for disabling each one of them as well.

Any drawbacks after doing this?

Well, this could add few seconds to the desktop loading time as ‘Nautilus’ (file manager) too has to be loaded now. But then again, you’re gonna open it (file manager) pretty soon after logging into the desktop anyway, so, there’s noting to worry about :).

That’s it. Good luck (again, forgive me about those angry ramblings, don’t usually happen with me, but, everyone has their breaking point, right? ;-)).

Gayan

An RHCE, ‘Linux’ user with 14+ years of experience. Extreme lover of Linux and FOSS. He is passionate to test every Linux distribution & compare with the previous release to write in-depth articles to help the FOSS community.

1 thought on “How to Enable the Desktop Right-Click menu in Gnome Shell?”

watch these video it may solve ur problem in fedora 17 GNOME

Leave a Comment Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

Contact

About HecticGeek

Welcome to HecticGeek, it is an independent blog founded back in 2010. We cover in-depth Linux OS, product review with other all technology-related software and tools. Our mission is to provide valuable and trustful technology-related content to our users. Read More.

Источник

Оцените статью
Adblock
detector