<table><tr><td style="">jgrulich created this revision.<br />jgrulich added reviewers: hein, Plasma.<br />jgrulich set the repository for this revision to rPLASMADESKTOP Plasma Desktop.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: plasma-devel.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D3242" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>In Fedora 25 there have been many improvements regarding dual graphics support and they recently added an option to Gnome to launch the application using a dicrete graphics card, by just overriding DRI_PRIME environment variable, see <a href="http://www.hadess.net/2016/10/dual-gpu-integration-in-gnome.html" class="remarkup-link" target="_blank" rel="noreferrer">http://www.hadess.net/2016/10/dual-gpu-integration-in-gnome.html</a>. This option is available based on simple dbus service implemented here <a href="https://github.com/hadess/switcheroo-control/" class="remarkup-link" target="_blank" rel="noreferrer">https://github.com/hadess/switcheroo-control/</a> providing just a single property whether the user has dual GPU. This dbus thingie is enabled in Fedora 25 by default. This patch tries to add this option the same way as Gnome does. I'm just not sure about using qputenv(), but I couldn't find a better way as using QProcess, which allows to set environment variables, won't have that nice mouse effect of opening application, at least I think it won't.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>rPLASMADESKTOP Plasma Desktop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D3242" rel="noreferrer">https://phabricator.kde.org/D3242</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>applets/kicker/plugin/actionlist.cpp<br />
applets/kicker/plugin/actionlist.h<br />
applets/kicker/plugin/appentry.cpp<br />
applets/kicker/plugin/recentusagemodel.cpp<br />
applets/kicker/plugin/runnermatchesmodel.cpp</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>jgrulich, hein, Plasma<br /><strong>Cc: </strong>plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas<br /></div>