Root privilegs for Sailfish app? [answered]
I started to learn how to program a app. I want to manipulate some /usr/share/applications/*.desktop files in my app, but therefore I need root privilegs. How can I get them?
We have moved to a new Sailfish OS Forum. Please start new discussions there.
I started to learn how to program a app. I want to manipulate some /usr/share/applications/*.desktop files in my app, but therefore I need root privilegs. How can I get them?
If you plan to touch .desktop files, add the modified ones to the local (nemo) .local/share/applications folder I'd strongly suggest agains editing any of the .desktop files present in the /usr/share/applications; you might break many things.
this is probably a hack, and not going to work, but have you tried adding NotShownIn to the ones in .local ?
tortoisedoc ( 2017-01-16 23:29:23 +0300 )editits about "hacking" lipstick to launch the .local ones instead of the original ones. lipstick relies on libcontentaction to trigger .desktop files; according to this, libcontentaction will search first the .desktop files under the .local location (which also is the place for user-specific overrides), THEN the system location under /usr/share/applications. Hiding the items under .local should STILL make them trigger (when you launch the system-ones from the lipstick ui). If this is not the case, there might be a bug in lipstick / xdg-utils somewhere. Any other solution is a hack, and should not be pursued.
tortoisedoc ( 2017-01-29 21:40:00 +0300 )editThis thread is public, all members of Together.Jolla.Com can read this page.
Asked: 2017-01-15 21:00:43 +0300
Seen: 771 times
Last updated: Jan 16 '17
[Request] Alien Dalvik full root [answered]
Icon templates availability [answered]
Giving Root access for Android apps [answered]
JavaScript API for app development [answered]
Error message: xcb_connection_has_error() returned true
Possible to develop a Glympse client for Sailfish?
Stabilize the Sailfish Media API and Provide Harbour Support for Video Apps
If you could explain what you are trying to achieve by manipulating *.desktop files, then perhaps somebody can tell whether it is the right way to do what you are doing.
ln ( 2017-01-15 21:54:36 +0300 )editI started to write a app to lock other apps with a pin. But therefore I need to manipulate the .desktop files to change the Exec line to execute my app. Because if you then tip on the app icon in app launcher and try to start the app my app is starting. So the user can input the pin and then the other app can start. This was my idea and on my phone it works well, but i manipulatet the .desktop files manuell
yajo ( 2017-01-16 08:56:17 +0300 )edit