$DESKTOP_SESSION could be use to check if the user is running plasma desktop automatically.
such as:
_plasma=false
if [ $DESKTOP_SESSION == /usr/share/xsessions/plasma ] then _plasma=true fi
Git Clone URL: | https://aur.archlinux.org/optimus-manager-qt.git (read-only, click to copy) |
---|---|
Package Base: | optimus-manager-qt |
Description: | A Qt interface for Optimus Manager that allows to configure and switch GPUs on Optimus laptops using the tray menu |
Upstream URL: | https://github.com/Shatur/optimus-manager-qt |
Keywords: | Intel Nvidia Optimus Qt |
Licenses: | GPL3 |
Submitter: | Shatur |
Maintainer: | Shatur |
Last Packager: | Shatur |
Votes: | 70 |
Popularity: | 0.22 |
First Submitted: | 2019-02-27 10:13 (UTC) |
Last Updated: | 2024-07-05 07:58 (UTC) |
$DESKTOP_SESSION could be use to check if the user is running plasma desktop automatically.
such as:
_plasma=false
if [ $DESKTOP_SESSION == /usr/share/xsessions/plasma ] then _plasma=true fi
@Slowtech, yes, thanks!
There was an error while compiling : Project ERROR: Unknown module(s) in QT: x11extras Seems like qt5-x11extras should be in dependencies.
Honey bee dependably utilizes the intel gpu as a matter of course, except if unequivocally educated to utilize the nvidia gpu by propelling an application utilizing primusrun or optirun. This is the reason you get diverse OpenGL libraries referenced when you run glxinfo. http://www.domyassignmentforme.com/accounting-assignment-help-service
@edward-p, thanks, good idea. But I propose to name the packages optimus-manager-qt
and optimus-manager-kde
to comply with the convention of names.
@Shatur We can make split packages like this (one with KDE API features while another without): https://0x0.st/zKky.txt
However, current PKGBUILD don't support split the build()
function, none-KDE users will be forced installing knotifications
kiconthemes
as makedepends. This PKGBUILD shouldn't to be here on AUR, but it's convenient for build machines of those binary repos then they will be able to provide two packages for both KDE users and none-KDE users.
@jpegxguy, sorry, I accidentally added the PLASMA define directly to the qmake file. Fixed. You can remove this dependencies.
Project ERROR: Unknown module(s) in QT: KNotifications KIconThemes
Had to install those 2. (found in extra
)
If you are using Plasma, it is recommended to replace in PKGBUILD _with_plasma=false
with _with_plasma=true
to use additional KDE API feautures (this also adds additional dependencies).
Pinned Comments
Shatur commented on 2019-02-27 10:15 (UTC) (edited on 2024-07-05 07:58 (UTC) by Shatur)
If you are using Plasma, it is recommended to replace in PKGBUILD
_with_plasma=false
with_with_plasma=true
to use additional KDE API feautures (this also adds additional dependencies).