Red HAT Linux issue - How do I add mouse menu items ?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have no idea how smart the OP is. "you're going to write those up for the OP?"
You're the one suggesting installing KDE from source, or heavily implied it when saying:
Quote:
Originally Posted by jefro
It is possible to do it. The source for all that is still available even if no built in way exists or no add on program to edit exists. I dug into some of the window manager stuff a long time ago. Not easy but it's there.
Since the window manager in question is KDE, that would certainly seem to be what's being discussed.
Quote:
"current KDE " Not sure why you'd do that. I keep saying to find the version/level that is in use. Where did you gather a current KDE was considered?
Again: KDE system settings is where the option in question is. WHERE in the application who knows...OP's question was answered some time ago.
Current KDE comes on a CURRENT OS..which is what has been suggested to the OP, since RHEL 5 is *NOT* something that should be used, for a variety of reasons, many of which have been stated clearly here in this thread. So telling the OP to 'forget about Red Hat' is questionable advice, since that is a HUGE underlying problem for any viability of their code/program/system. Addressing THAT addresses the KDE issue, since you get new features that may let them do BETTER things, like a plasma widget to run the app maybe?? Or be able to exactly tell them where the option is in system settings??
I developed some special code that works great and the people who want to use it (needed and/or wanted) the same middle mouse button menu option to run it (execute it) as they use on other systems.
...indicating the OP's code 'needs' RHEL 5. The client, in this case, wants the same BEHAVIOR as they get on other systems, which is absent on the old RHEL 5. The only stumbling block here is the OP's code.
I just wanted to add a simple link to the middle mouse
RH5 KDE - If no one has a procedure for RH5 kde add a mouse button link
Then how about - giving the procedure to add a mouse button link on RH7 or current level. KDE
whatever the current RH version is tell me how to add another a mouse button menu item
BTW . the code they want to run is irrelevant - it runs fine and I have assigned it to a desktop Icon,
but it would be nice to know for future - how to add another item to the mouse menus.
RH5 KDE - If no one has a procedure for RH5 kde add a mouse button link Then how about - giving the procedure to add a mouse button link on RH7 or current level. KDE whatever the current RH version is tell me how to add another a mouse button menu item
BTW . the code they want to run is irrelevant - it runs fine and I have assigned it to a desktop Icon, but it would be nice to know for future - how to add another item to the mouse menus.
You were told previously. Again:
The current version is RHEL 8.x...this can be found on their website.
Using RHEL without PAYING FOR IT isn't a good idea
Going into "System settings" in KDE lets you assign shortcuts/middle-click options/etc.
And you initially started out by saying they ran a different OS and wanted the same behavior, and indicated that your code was the sticking point. Now it doesn't matter??? Why use RHEL at all, then, and use whatever version/distro of Linux they're already comfortable with???
You still don't tell us anything about this mystery-code you're trying to run, what 'they' are already using that gives them this middle-click functionality, etc. Playing guessing games isn't too much fun.
Here is a solution that will work for sure, but has the drawback that it needs a hotkey, but that's fine cause hot keys are awesome.
(needs a keyboard tho, which I assume your client has, if not, then well it woulds still work through an on screen virtual keyboard, but that's less awesome)
1.) Install 9menu.
2.) Create a shortcut with the key combination of their/your choice that calls
And you're done.
It looks kind of crusty and old, but does the trick so well that I have incorporated it into a more complex script that finds out which application is currently focused and loads a custom menu for that, if available, on the fly.
(I use a tablet with a stylus sometimes, and I call that script with a button on the tablet, etc)
Here is an example config file for the 'general' launcher I use.
The base requirement is a program or script, spelled as it would be if you were to run it directly. The ampersand is important.
If you want to give the menu items nicer labels, you would put the label in front of the command, with a colon at the end.
Code:
Mypaint painting program:mypaint &
Best Text Editor:gvim &
Make rock think for me:kcalc &
Worst way to use a keyboard:xvkbd &
Ogle pictures:geeqie &
What am I doing with my life please make it stop this is a white elefant and now humanity is cursed:opentoonz.sh &
It's that simple and will work on pretty much anything that has an X server.
I will check the system settings for adding menu items thank you
Thank you all for your patience and answers.
So system settings is where I will check next time I get over to the testing areas. Many thanks - I will let you know if it has the option.
The mystery code really has nothing to do with (how to add a mouse menu item) question - is an interactive program that grabs essential data from a variety of places - test logs, status csv files counter tracking files, etc etc and prompts the user for a few items - then stores in a db. On the other OS systems they run the code from a middle mouse menu. What used to take 5 or 6 minutes or more now takes about 20 seconds with the code and it totally eliminates errors.
On the RH5 systems they asked me to make a similar feature which runs absolutely fine - I had it working/starting from a 3 letter alias, but I was asked to see if I could add the start mechanism link to the middle mouse menu to be consistent with the other systems. I have since made an Icon launcher on main desktop by the way as a backup to run (in case the menu option doesnt get solved)
The middle mouse menu already has 3 or 4 items but no one could find any literature on how to add another simple item to that menu.
The code works fine on all the systems - I just needed the mouse menu item add directions.
I was asked not to install extra features so I cant do the 9menu option, which I don't really need anyway, since there is already a middle mouse menu with items.
ps What was the comment about Using RHEL without PAYING FOR IT isn't a good idea - mean....????
I see, but just for your information:
This is absolutely retarded.
Running code from the middle mouse button as this kind of a hard constraint is absolutely pants on head retarded. Even if you were to spin me some sad story about disabilities where people have to use headsticks to actuate said middle mouse button, it would still be rather dumb, even if the story were absolutely true and legitimately heart rending, hearing of the fate of the person or people who have to use the computer this way.
But I'm going with: BS.
Even if it's all true, it's BS, and I recommend you telling your client to snoo snoo a hat.
Middle mouse is used for pasting on most Linux distros, and while I have no real experience with this particular instance of RHEL, I did use Fedora before and the middle click pasted there too.
So to even turn the middle mouse button into this kind of launcher is fighting standards to begin with.
Your client is dumb. If you want to help your client fix problems, start with that one.
So yeah, I recommend a strict regiment of percussive maintenance until the issue is resolved.
P.S.:
>What used to take 5 or 6 minutes or more now takes about 20 seconds with the code and it totally eliminates errors
Then bind that damn code to the middle mouse button, and not the menu, and if you were able to bind the menu to the middle mouse button then this menu must be a named command or external process so you could just do a websearch on that since you clearly need to know the name of it in order to bind it.
P.P.S.:
Why am I this gruff? And not friendly.
Because I'm 90% sure that this is just trolling, and in the worst way possible.
Lame, timid, stupid energy vampirism with enough ambiguous vagueness to keep suggestions going while still giving it that little edge of retardedness to subtly, but not even very much anger anyone (hence it being so boring, which, of course, is the real source of anger) who spends about an attosecond thinking about that problem.
Not to mention the "concern trolling" about "Oh I thought Linux was this eassyyyyyyyy just one file to edit" etc.
It has all the tells.
If this guy is legit then the only acceptable answer will be : Oh yeah, for now, I will bind the "code" (which reeks of BS in itself) to the middle mouse button, instead of the menu, since that code is the thing my client ran from the middle mouse button on the other OS.
Thank you all for your patience and answers.
So system settings is where I will check next time I get over to the testing areas. Many thanks - I will let you know if it has the option.
The mystery code really has nothing to do with (how to add a mouse menu item) question - is an interactive program that grabs essential data from a variety of places - test logs, status csv files counter tracking files, etc etc and prompts the user for a few items - then stores in a db. On the other OS systems they run the code from a middle mouse menu. What used to take 5 or 6 minutes or more now takes about 20 seconds with the code and it totally eliminates errors.
On the RH5 systems they asked me to make a similar feature which runs absolutely fine - I had it working/starting from a 3 letter alias, but I was asked to see if I could add the start mechanism link to the middle mouse menu to be consistent with the other systems. I have since made an Icon launcher on main desktop by the way as a backup to run (in case the menu option doesnt get solved)
The middle mouse menu already has 3 or 4 items but no one could find any literature on how to add another simple item to that menu.
The code works fine on all the systems - I just needed the mouse menu item add directions. I was asked not to install extra features so I cant do the 9menu option, which I don't really need anyway, since there is already a middle mouse menu with items.
Not sure why you keep ignoring this: WHY are you using ancient RHEL 5 when (by your own admission), your 'client' **IS ALREADY USING SOMETHING ELSE**??? Why can't you use the exact same system(s) they're already using???
Quote:
ps What was the comment about Using RHEL without PAYING FOR IT isn't a good idea - mean....????
Did you not read or understand what was told to you several times already???
AGAIN: Using RHEL without paying for it means you DO NOT get patches/bugfixes/security updates, or access to the online repositories. Your system will be difficult to maintain and be unstable in a short time, not to mention the fact that you will have to manually download/install EVERY PACKAGE manually to do even the simplest of updates. Again, has been explained before.
Let's not forget one of the site guidelines from LQ Rules:
Quote:
Challenge others' points of view and opinions, but do so respectfully and thoughtfully ... without insult and personal attack. Differing opinions is one of the things that make this site great.
Let's not forget one of the site guidelines from LQ Rules:
Yeah, but...
What if it's not about different opinions but straight up shenanigans?
What if it's about shenanigans but they're 'respectful'?
What if I politely and respectfully waste your time? What if I mislead you with a smile on my face? Deliberately, for a laugh?
What if I undermined and degraded the web of trust and cooperation in any community, on a whim just to pass my time on their expense as long as I am polite about it?
I'm just sick of being lied to, this current age of humanity is quite chafing on the patience, and "leaving well enough alone" is a thing those who partake in the above should look for.
It's ...it's just enough. I've had enough insincerity and BS. I really, really do have enough of it, and I refuse to see "putting up with it" as the way to go anymore.
Putting up with it has been the standard for long enough, I'm fed up with the teasing of a thousand cuts, I want to cut back on the cutting.
If an aura of righteous savagery strikes fear and insecurity into those who degrade and erode basic trustful human communication, then: Good.
If anyone after one of my tirades starts to feel uneasy: Good.
I prefer this a trillion times of them keeping their sardonic faces leering and jeering they are so used to these days.
Oh, let's poke the nerds a bit, let's poke em, gotta be be polite while I pee in their cereal.
OP probably thought he was smart putting it in the newbie corner, then people like me will appear as "assholes" and scare off linux newbies, muahahaha take that! Linux!
They will be disgusted by the anger, the anger after asking for "something simple, a simple edit to a menu" which the 'nerds can't answer'
(but unbeknownst to actual newbies, we could, if it weren't some cockamamie scenario engineered for trolling purposes) and they get cheesed at that! Genius! ... Everyone weill hate Linux users if they're as nasty as Geist is!
(Despite 9menu being an ideal solution to it, which I have given)
Why would someone who has 'Linux clients with specific wishes' and post in the Newbie Corner? I mean, it's not impossible, but then with silly stuff like this?!
Anyway, it is not I who is that muscle, and instead newbies should relish the thought that someone out there has enough, has enough of deception and yet more little cuts like that.
And for a laugh too, that's the lowest of the low.
It's not like the kind of OP are doing it under great duress, no it's literally just for a joke. I...really, really don't like that anymore. I'm full.
Too much, too short of a time. Make saboteurs tremble again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.