Comments (6)
Can you test this version?
2a73069
from gtkshutdown.
Thanks i tried. May i do something wrong. Because i get error:
make run or $cd build; ./gtkshutdown
mkdir -p build
glib-compile-resources --sourcedir=data --generate-source data/gtkshutdown.gresource.xml
gcc -o build/gtkshutdown src/main.c src/callbacks.c src/utilities.c data/gtkshutdown.c -Wall `pkg-config --cflags --libs gtk+-3.0 libnotify libcanberra` -export-dynamic -no-pie
Package libnotify was not found in the pkg-config search path.
Perhaps you should add the directory containing `libnotify.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libnotify' found
Package libcanberra was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcanberra.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcanberra' found
src/main.c:19:10: fatal error: gtk/gtk.h: No such file or directory
19 | #include <gtk/gtk.h>
| ^~~~~~~~~~~
compilation terminated.
src/callbacks.c:19:10: fatal error: gtk/gtk.h: No such file or directory
19 | #include <gtk/gtk.h>
| ^~~~~~~~~~~
compilation terminated.
src/utilities.c:19:10: fatal error: canberra.h: No such file or directory
19 | #include <canberra.h>
| ^~~~~~~~~~~~
compilation terminated.
data/gtkshutdown.c:1:10: fatal error: gio/gio.h: No such file or directory
1 | #include <gio/gio.h>
| ^~~~~~~~~~~
compilation terminated.
make: *** [Makefile:10: all] Error 1
from gtkshutdown.
sudo apt install libcanberra-dev
will fix the compile problem
from gtkshutdown.
next Error:
Package libnotify was not found in the pkg-config search path.
sudo apt install libnotify
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libnotify
so
i tried:
sudo apt-get install libnotify-dev
make
mkdir -p build
glib-compile-resources --sourcedir=data --generate-source data/gtkshutdown.gresource.xml
gcc -o build/gtkshutdown src/main.c src/callbacks.c src/utilities.c data/gtkshutdown.c -Wall `pkg-config --cflags --libs gtk+-3.0 libnotify libcanberra` -export-dynamic -no-pie
no error. i dont find alert functionallity here:
BTW i found how to do it in console:
play -q -n synth 2 pluck C5
https://askubuntu.com/a/228100/1017209
so its possible to add alerts into kShutdown probably
from gtkshutdown.
Alerts are enabled by default in this testing release.
I will check the code of kShutdown cause I am not a fan like using a external dependency for sound alerts.
from gtkshutdown.
Issue resolved in 2a73069
Notification will stay by default on. Pull requests are welcome.
from gtkshutdown.
Related Issues (6)
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 gtkshutdown.