maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [ANNOUNCE] Catorise PLUS - create your menu like you want (https://talk.maemo.org/showthread.php?t=73443)

Malakai 2016-11-15 18:17

Re: [ANNOUNCE] Catorise PLUS - create your menu like you want
 
Thanks for the info.
So I suppose that I can't add that command into a sudoers file so that a password won't be asked (meaning the command will be executed properly) when Catorise Plus tries to refresh the menu.
Now a password is asked when executing the root command, and I prefer it that way.
If there is no easy way to achieve what I want I will just have to manually execute "sudo /opt/catorise/catorise" after making the changes in Catorise Plus GUI (not that often) and saving them (it seems to work this way, but it is not "ideal").

Halftux 2016-11-15 20:43

Re: [ANNOUNCE] Catorise PLUS - create your menu like you want
 
Quote:

Originally Posted by Malakai (Post 1518787)
Thanks for the info.

No problem.

Quote:

Originally Posted by Malakai (Post 1518787)
So I suppose that I can't add that command into a sudoers file so that a password won't be asked (meaning the command will be executed properly) when Catorise Plus tries to refresh the menu.

As far as I know this is not possible.

Quote:

Originally Posted by Malakai (Post 1518787)
Now a password is asked when executing the root command, and I prefer it that way.

I am with you.

Quote:

Originally Posted by Malakai (Post 1518787)
If there is no easy way to achieve what I want I will just have to manually execute "sudo /opt/catorise/catorise" after making the changes in Catorise Plus GUI (not that often) and saving them (it seems to work this way, but it is not "ideal").

You need to change the source code. There you have several options. But which one is secure?

If you would like to use the sudoers file you could point in the source to a script which you put in the sudoers file or start catorise as root.

Btw there is another root command when you make a new category.
Some picture will be copied.

peterleinchen 2016-11-15 22:15

Re: [ANNOUNCE] Catorise PLUS - create your menu like you want
 
So simplest solution would be to create a (sh) script to call catorise gui and on finishing call your sudo command.
And put this script into the desktop file to start from menu.
?

Malakai 2016-11-16 18:34

Re: [ANNOUNCE] Catorise PLUS - create your menu like you want
 
Quote:

Originally Posted by Halftux (Post 1518791)
You need to change the source code.

Sadly the only code I kind of understand and can try to "play" with is shell scripting (and my knowledge remains basic).

Quote:

Originally Posted by peterleinchen (Post 1518798)
So simplest solution would be to create a (sh) script to call catorise gui and on finishing call your sudo command.
And put this script into the desktop file to start from menu.
?

Could be a solution... but as I don't often change the category of the apps I have, nor install too many apps, I think that I would simply execute the command to refresh the menu after saving the changes in Catorise Plus GUI (when the need to change the category of an app really exists). It's ok this way for now.


All times are GMT. The time now is 05:31.

vBulletin® Version 3.8.8