pop-os / launcher

Modular IPC-based desktop launcher service
Mozilla Public License 2.0
219 stars 42 forks source link

desktop_entries: Allow selecting gpu/secondary actions on COSMIC #205

Closed Drakulix closed 5 months ago

Drakulix commented 5 months ago

Adds entries for each gpu and secondary desktop actions to the context menu of desktop entries, while keeping compatibility with pop-shell, by carefully adjusting the protocol and not exposing different gpus (which the shell-plugin can't handle).

Only change for pop-shell is the use of switcheroo to determine, if the setup should be considered "switchable".

Testing on COSMIC requires https://github.com/pop-os/cosmic-launcher/pull/85

Drakulix commented 5 months ago

Needs another review, due to small fix for systems with switcheroo running but no gpu (VMs with software rendering) and the "default"-label not respecting the "prefers_dgpu" property, although launching the app with the correct preference.