Giter VIP home page Giter VIP logo

ayatana-indicator-power's People

Contributors

albaguirre avatar cas-- avatar ckerr avatar codygarver avatar didrocks avatar dobey avatar jjardon avatar kelemeng avatar kenvandine avatar mariogrip avatar maronghappy avatar mikix avatar milotype avatar ochosi avatar p-bo avatar peat-psuwit avatar robert-ancell avatar santossi avatar seb128 avatar sggua avatar sil2100 avatar sunweaver avatar tari01 avatar ted-gould avatar vistaus avatar weblate avatar welaq avatar wtuemura avatar yarons avatar zoli111 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ayatana-indicator-power's Issues

gschema is not valid

When installing ayatana-indicator-power the glib schema processing fails to compile the schema:

Processing triggers for libglib2.0-0:amd64 (2.55.2-2ubuntu1) ...
/usr/share/glib-2.0/schemas/org.ayatana.indicator.power.gschema.xml:4:1  Error on line 4 char 1: <enum id='icon-policy-enum'> already specified.  This entire file has been ignored.

Fix deprecations

g_type_class_add_private and friends + some others throw warnings

Fix percentage display

The menu often displays "estimating..." for multiple hardware items. We need to address this.

recheck namespace changes

In PR #33, we adpopted various changes required for Lomiri / Ubuntu Touch. These changes bring some name space issues (and the power indicator already had some namespace legacy itself, as well).

The following namings need to be reconsidered and possibly changed:

x-canonical-snap-decisions
src/notifier.c: 331: notify_notification_set_hint(nn, "x-canonical-snap-decisions", g_variant_new_string("true"));

x-canonical-non-shaped-icon
src/notifier.c: 332: notify_notification_set_hint(nn, "x-canonical-non-shaped-icon", g_variant_new_string("true"));

x-canonical-private-affirmative-tint
src/notifier.c: 333: notify_notification_set_hint(nn, "x-canonical-private-affirmative-tint", g_variant_new_string("true"));

x-canonical-snap-decisions-timeout
src/notifier.c: 334: notify_notification_set_hint(nn, "x-canonical-snap-decisions-timeout", g_variant_new_int32(INT32_MAX));
tests/test-notify.cc: 70: static constexpr char const * HINT_TIMEOUT {"x-canonical-snap-decisions-timeout"};

com.canonical.Unity.Screen
src/brightness.c: 342: * DBus Chatter: com.canonical.Unity.Screen
src/brightness.c: 377: "com.canonical.Unity.Screen",
src/brightness.c: 378: "/com/canonical/Unity/Screen",
src/brightness.c: 379: "com.canonical.Unity.Screen",

com.ubuntu.touch.system
src/brightness.c: 25: #define SCHEMA_NAME "com.ubuntu.touch.system"

com.ubuntu.touch.AccountsService.Sound
CMakeLists.txt: 72: if(EXISTS "/usr/share/accountsservice/interfaces/com.ubuntu.touch.AccountsService.Sound.xml")
src/CMakeLists.txt: 37: com.ubuntu.touch
src/CMakeLists.txt: 39: /usr/share/accountsservice/interfaces/com.ubuntu.touch.AccountsService.Sound.xml)

Fix coverage report warning

(WARNING) The coverage exclusion region start flag LCOV_EXCL_START
on line 73 did not have corresponding LCOV_EXCL_STOP flag
in file test/ayatana-indicator-power/src/device.c.

Lomiri: Flashight toggle doesn't work

Trying to use the flashlight toggle widget action on a Volla Phone (yggdrasil) with Ubuntu Touch 20.04 (r283) simply leaves the following in journalctl -f:

Nov 01 13:40:48 ubuntu-phablet repowerd[3356]: DefaultStateMachine[c1]: handle_user_activity_extending_power_state
Nov 01 13:40:48 ubuntu-phablet lomiri[2402]: g_variant_type_peek_string: assertion 'g_variant_type_check (type)' failed
Nov 01 13:40:48 ubuntu-phablet lomiri[2402]: g_variant_type_string_is_valid: assertion 'type_string != NULL' failed
Nov 01 13:40:48 ubuntu-phablet ayatana-indicat[2317]: g_simple_action_activate: assertion 'simple->parameter_type == NULL ? parameter == NULL : (parameter != NULL && g_variant_is_of_type (parameter, simple->parameter_type))' failed

Version: 22.2.0-1ubports1+0~20220308175505.5+ubports20.04~1.gbp651c13

Disable testing

Currently there is no way to disable testing. I have attached a patch that fixes this issue:

    cd ${pkgname}
    patch -Np1 -i ../0002_add-testing-option.patch
    cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBEXECDIR=lib -Denable_tests=OFF
    make DESTDIR=${pkgdir} install

0002_add-testing-option.patch.zip

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.