![]() |
adding application to system menue
Hi,
I just tried to add the vpnc-applicationt to the system menu. what I did is this: * create a file /usr/share/applications/hildon/vpn-connect.desktop: [Desktop Entry] Encoding=UTF-8 Version=0.3.3 Type=Application Name=vpn-connect Exec=/usr/bin/vpn-connect.sh Icon=terminal X-Osso-Service=vpn-connect MimeType=application/x-executable The file has the following link: /etc/others-menu/extra_applications/0200_vpn-connect.desktop Next I created a dbus file called /usr/share/dbus-1/services/vpn-connect.service: [D-BUS Service] Name=vpn-connect Exec=/usr/bin/vpn-connect.sh After that I can see the new menu item, but when I click on it, nothing happens. When I call the script (/usr/bin/vpn-connect.sh) manually, everything works as expected. anybody knows what the heck is going wrong?! Thanks. |
When you call on the script from xterm are you as root or user?
|
I call the script as user and there is an sudoers entry as well.
|
So you are using sudo to call it?
sudo vpn-connect.sh It could be that the file needs root privilages I have the same issue with NmapFE Even if you make the link correct wich it looks like it is... the link wont call on the script since it needs root privilages. |
I was looking at some of the VPN solutions at the Application Catalog and it looks like VPN needs root privilages...
From OpenVPN Code:
OpenVPN needs root permissions. Authentication with pam and lzo compression support are currently disabled so that OpenVPN package would not need any additional dependencies. Can I take a look at it? |
I can call the script as user, just tested it and it works.
|
Take it off sudo and then call it as user.
|
ok. but if it needs root privilegies, the entry in sudoers should help, right?!
|
Yes but that means you wont be able to execute it from the GUI you have to be in xterm calling it using sudo or as root only.
|
arghh, yes sure. mixed it up. :)
so at least there is no chance to call it from the gui, or is there any trick which I can use? |
I could give it a try and see how could I manipulate maemo... but I would need your files...
I know in a full Linux enviroment there is plenty of ways to do it. |
Easiest way: have another script which calls "sudo the_original_script.sh" and call new_script.sh from the application menu.
|
Quote:
|
good idea, will give it a try.
thanks so far. |
| All times are GMT. The time now is 15:38. |
vBulletin® Version 3.8.8