Changeset View
Changeset View
Standalone View
Standalone View
host/mprisplugin.cpp
Show First 20 Lines • Show All 243 Lines • ▼ Show 20 Line(s) | 243 | { | |||
---|---|---|---|---|---|
244 | switch (Settings::self().environment()) { | 244 | switch (Settings::self().environment()) { | ||
245 | case Settings::Environment::Unknown: return QString(); | 245 | case Settings::Environment::Unknown: return QString(); | ||
246 | case Settings::Environment::Chrome: return QStringLiteral("google-chrome"); | 246 | case Settings::Environment::Chrome: return QStringLiteral("google-chrome"); | ||
247 | // TODO account for distros that want to be super special and install these with a different name | 247 | // TODO account for distros that want to be super special and install these with a different name | ||
248 | // perhaps we could do a KService lookup of some sort | 248 | // perhaps we could do a KService lookup of some sort | ||
249 | case Settings::Environment::Chromium: return QStringLiteral("chromium-browser"); | 249 | case Settings::Environment::Chromium: return QStringLiteral("chromium-browser"); | ||
250 | case Settings::Environment::Firefox: return QStringLiteral("firefox"); | 250 | case Settings::Environment::Firefox: return QStringLiteral("firefox"); | ||
251 | case Settings::Environment::Opera: return QStringLiteral("opera"); | 251 | case Settings::Environment::Opera: return QStringLiteral("opera"); | ||
252 | case Settings::Environment::Vivaldi: return QStringLiteral("vivaldi"); | 252 | // This is what the official package on their website uses | ||
253 | case Settings::Environment::Vivaldi: return QStringLiteral("vivaldi-stable"); | ||||
253 | } | 254 | } | ||
254 | 255 | | |||
255 | return QString(); | 256 | return QString(); | ||
256 | } | 257 | } | ||
257 | 258 | | |||
258 | bool MPrisPlugin::canRaise() const | 259 | bool MPrisPlugin::canRaise() const | ||
259 | { | 260 | { | ||
260 | return true; // really? | 261 | return true; // really? | ||
▲ Show 20 Lines • Show All 327 Lines • Show Last 20 Lines |