We have moved to a new Sailfish OS Forum. Please start new discussions there.
3

Running apps with elevated permissions?

asked 2016-06-27 12:36:04 +0200

Kagerou gravatar image

updated 2016-06-27 12:37:10 +0200

Is it possible to run apps with sudo rights / admin rights?

Starting programs with sudo doesn't appear to work, as the commands to run apps, e.g.

xdg-open /usr/share/applications/harbour-file-browser.desktop

will fail to run if sudoed. (and yes I have sudo installed.)

What I'd like to do is run GUI text editors or file managers with more permissions, so that I can actually DO something.

edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted
5

answered 2016-06-27 13:08:42 +0200

chemist gravatar image

updated 2016-06-27 13:09:09 +0200

From CLI you can invoke them with devel-su -p $app that runs then with privileged rights. For in general starting things from eg .desktop-files the application needs to have the bit set in the rpm .spec file. That is not allowed in harbour. If you just need a filebrowser, for cargodock is an elevated starting rpm available on openrepos.

In general I'd advice against having GUI filebrowsers and editors just set up as app-icons on the launcher and always start them from shell. But then, I do not use GUI editors at all.

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2016-06-27 12:36:04 +0200

Seen: 267 times

Last updated: Jun 27 '16