Comments (4)
Do you have "notify-send" installed in your system?
from octopi.
yup it's installed
On 02/05/2014 04:21 PM, Alexandre Arnt wrote:
Do you have "notify-send" installed in your system?
Reply to this email directly or view it on GitHub:
#17 (comment)
Klearchos-Angelos Gkountras
--------Contact info-----------
mail [email protected]
xmpp [email protected]
irc jemadux @ frenode
web jemadux.info
Gnu/Linux is not user-friendly.
It is user-friendly.
It is not ignorant-friendly and idiot-friendly.
from octopi.
I have examined octopi-notifier code, MainWindow::sendNotification in particular, and have several remarks:
- QProcess::startDetached is static public function, it does not require QProcess object. I suspect that
QProcess *send = new QProcess();
causes a memory leak.
2. I do not think that checking desktop environment and if the executable exists are necessary. Running unexisting command will just result in
bash: <command>: command not found
in stdout and process will quit. The line
if (WMHelper::isXFCERunning() || WMHelper::isLXDERunning() || WMHelper::isOPENBOXRunning())
must be causing this Mate issue.
I would rewrite this function as follows:
void MainWindow::sendNotification(const QString &msg)
{
const QString processToExec =
"notify-send -i /usr/share/icons/octopi_red.png -t 30000 \"" +
StrConstants::getApplicationName() + "\" \"" + msg + '"';
QProcess::startDetached(processToExec);
}
I have not tested this, so sorry if it won't work as expected.
from octopi.
Indeed guys!
Thank you very much for finding and fixing this issue!
from octopi.
Related Issues (20)
- Add support Forward and Backward buttons HOT 2
- octopi-helper[aborted]: Suspicious transaction detected -> "echo "Press" HOT 2
- Can't delete package without an internet connection. HOT 1
- All dependencies with their version ranges are unclickable. HOT 3
- [Feature Request] Add option to ignore updates HOT 2
- Pacman backend doesn't show all packages HOT 2
- Port to Qt6? HOT 14
- [Feature request] Allow to set terminal window size and font size permanently. HOT 1
- No longer able to toggle install reason HOT 7
- initial impressions HOT 3
- Cache Cleaner does not listen to setting HOT 2
- [Feature Request] Add a tab to view comments on AUR packages (Only display tab when viewing AUR packages)
- Add an option in the view menu to view all orphans and be able to remove them like the rest
- Will only run on qtermwidget 1.3 otherwise 1.4 qtermwidget/octopi crash on startup HOT 2
- Option to run octopi-sudo as another user HOT 1
- '--noeditmenu' is deprecated. Use '--editmenu=false' instead HOT 1
- Clicking on notifier system tray icon raises an error message HOT 2
- Octopi does not work with libalpm 14 HOT 1
- Broken with pacman 6.1 HOT 2
- Command line command to force update of octopi-notifier status HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from octopi.