TranslucentTB / TranslucentTB

A lightweight utility that makes the Windows taskbar translucent/transparent.
https://translucenttb.github.io
GNU General Public License v3.0
15.66k stars 1.13k forks source link

Question: App's permission scopes #257

Closed MythreyaK closed 5 years ago

MythreyaK commented 5 years ago

The permissions seem too broad for the app. The other motivating factor for this question was that I was just looking for some technical explanation as to which feature requires which permission scope as I was interested in how restricted and sandboxed UWP apps could make such a beautiful desktop experience!

olliecheng commented 5 years ago

In fact, we don't use the majority of these permissions we seem to 'require'!

You see, TranslucentTB is actually a desktop app. That's why you can download .exe versions of the application from Releases here on our GitHub. Microsoft, however, has given app developers a way to package their desktop apps (like TTB) to UWP, the app platform used by the Store. This is meant to be a relatively painless packaging process, and therefore apps converted using this method are automatically given all permissions (the same ones any ordinary desktop application would be granted).

As Microsoft write on their official wiki page:

Packages that you create for your desktop application are desktop-only, full-trust applications and are not virtualized or sandboxed. This allows them to interact with other apps the same way classic desktop applications do.

You can see this in other Desktop Bridge (or whatever it's called now) apps on the Store. For example, Spotify, which has many of the same permissions that we require.

MythreyaK commented 5 years ago

Ahh, so there is no sandboxing allowing for full-access like a normal Desktop app! Thanks for the clarification!