Giter Site home page Giter Site logo

Add alert beep about gtkshutdown HOT 6 CLOSED

giorgosioak avatar giorgosioak commented on July 20, 2024
Add alert beep

from gtkshutdown.

Comments (6)

giorgosioak avatar giorgosioak commented on July 20, 2024

Can you test this version?
2a73069

from gtkshutdown.

sl5net avatar sl5net commented on July 20, 2024

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.

giorgosioak avatar giorgosioak commented on July 20, 2024

sudo apt install libcanberra-dev will fix the compile problem

from gtkshutdown.

sl5net avatar sl5net commented on July 20, 2024

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:

image

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.

giorgosioak avatar giorgosioak commented on July 20, 2024

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.

giorgosioak avatar giorgosioak commented on July 20, 2024

Issue resolved in 2a73069
Notification will stay by default on. Pull requests are welcome.

from gtkshutdown.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.