PDA

View Full Version : [KDE] Cannot add menu item in kde


albright
2008-01-20, 15:53
As the subject says, if I try to add a menu item
(to do the right click thing for example) the
new item is not saved. The menu reverts to
the the original structure. This happens both
if I edit the menu as root or user ...

any advice welcome ...

PinCushionQueen
2008-01-20, 16:03
As the subject says, if I try to add a menu item
(to do the right click thing for example) the
new item is not saved. The menu reverts to
the the original structure. This happens both
if I edit the menu as root or user ...

any advice welcome ...

This is something borken in Menu Editor. I just posted the same issue in another thread. For now I've just made shortcuts/link to the desktop instead - it will work there. Don't know why, Menu Editor allows you to set up the link, says it's saving successfully and then NOTHING.

On a side note, I'm not sure I would add the "Right-click" script to a desktop or menu item, it pretty much needs to be assigned to a button because it's written as a sort of "toggle" so if you assigned it to a menu/desktop item then you could activate it to change from Left click to Right click but it would be nearly impossible to make it change back from Right click to Left click because you would need a Left click to run the script.

albright
2008-01-20, 16:16
thanks for the quick reply (and sanity check);

I thought you needed the menu item in place in order
to assign it to a button (command shortcut). Is there
another way?

albright
2008-01-20, 16:24
oops - never mind; I figured how to add an
"input action" ...

PinCushionQueen
2008-01-20, 16:41
oops - never mind; I figured how to add an
"input action" ...

If you can get it to work please let me know what you did. I can't get the right click script key assignment to work by "Input Actions" either :( The script will run from xterm successfully though. I can't figure out exactly what Penquinbait did.

albright
2008-01-20, 18:21
about input actions;

first, my script looks like this:


#!/bin/sh
export CHANGE=`/usr/bin/xmodmap -pp | awk '{print $2}' | tail -n 33 | head -n 1`
if test 3 = $CHANGE
then
/usr/bin/xmodmap -e "pointer = 1 2 3"
else
/usr/bin/xmodmap -e "pointer = 3 2 1"
fi


I think the first line is important for running outside of
terminal (but I might be wrong).

Then I just went to kcontrol-regional&accessibility-
input actions; went to preset actions and pushed
the "new action" button and selected as "action
type" the "keyboard shortcut -> Command/URL"
option. The entered the script location and selected
the shortcut key at the appropriate places ...

PinCushionQueen
2008-01-20, 18:39
about input actions;

first, my script looks like this:


#!/bin/sh
export CHANGE=`/usr/bin/xmodmap -pp | awk '{print $2}' | tail -n 33 | head -n 1`
if test 3 = $CHANGE
then
/usr/bin/xmodmap -e "pointer = 1 2 3"
else
/usr/bin/xmodmap -e "pointer = 3 2 1"
fi


I think the first line is important for running outside of
terminal (but I might be wrong).

Then I just went to kcontrol-regional&accessibility-
input actions; went to preset actions and pushed
the "new action" button and selected as "action
type" the "keyboard shortcut -> Command/URL"
option. The entered the script location and selected
the shortcut key at the appropriate places ...

Hmmm... that's exactly what I was doing before and it wouldn't work - now I try it again today and all of the sudden it works! Go figure :rolleyes: Thanks for the reality check so at least I knew to try it again :D

penguinbait
2008-01-20, 18:44
If you can get it to work please let me know what you did. I can't get the right click script key assignment to work by "Input Actions" either :( The script will run from xterm successfully though. I can't figure out exactly what Penquinbait did.


I did not use the menu editor, I created a .desktop file in

/usr/local/kde/share/applnk/Utilities


Then I set a shortcut to it

~~~~~~~~~~~~~~~~~~
PROBLEM

I think I have permissions problems on

/usr/local/kde/share/applnk/


Can do this to fix menus

chown -R user.users /usr/local/kde/share/applnk/

Let me know if this fixes it for you?

albright
2008-01-20, 21:37
Can do this to fix menus

chown -R user.users /usr/local/kde/share/applnk/

Let me know if this fixes it for you?

not for me - changes still do not get saved

PinCushionQueen
2008-01-20, 22:26
Doesn't fix it for me either... Thanx for trying :D