View Single Post
pycage's Avatar
Posts: 3,404 | Thanked: 4,474 times | Joined on Oct 2005 @ Germany
#43
Originally Posted by KiberGus View Post
On some systems it would break desktop layout mode: in layout mode pressing on menu which normally sujjests what to add to desktop would stop working. The same code on my device works. I think, that some dependences are missing.
I think it breaks because it blocks with a USSD request immediately after being started. Where /etc/sudoers is not modified it will wait indefinitely for a password.
I notice that you use sudo for sending the AT commands. Maybe a better way is to setuid root pnatd. My USSD Pad does this in the postinst script, so that regular users may use it. This shouldn't be a bigger security hole than explicitly enabling pnatd for passwordless sudo.
__________________
Tidings - RSS and Podcast aggregator for Jolla - https://github.com/pycage/tidings
Cargo Dock - file/cloud manager for Jolla - https://github.com/pycage/cargodock