Git Product home page Git Product logo

cosmic-osd's People

Contributors

ids1024 avatar git-f0x avatar jackpot51 avatar moi-cest-matthew avatar wash2 avatar falexei avatar gabriele2000 avatar hugok79 avatar bittin avatar mmstick avatar wsx-udscbt avatar vandalhj avatar

Stargazers

Tao Tien avatar Lucas Souza avatar aileks avatar  avatar Monzer Omer avatar Aleksey avatar  avatar Ryan Brue avatar  avatar Mo avatar Larson T. avatar  avatar Kerem Bozdas avatar HTGAzureX1212. avatar Erlang Parasu avatar Michael K avatar Nazmul Idris avatar Eduardo Flores avatar cednore avatar Suraj avatar

Watchers

Mike G. avatar  avatar Carl Richell avatar  avatar Victoria Brekenfeld avatar  avatar  avatar Levi Portenier avatar  avatar

cosmic-osd's Issues

nix build failure: the trait `RustEmbed` is not implemented for `Localizations`

After updating the flake inputs, and attempting to build, I get a failure:

warning: Git tree '/home/cole/code/cosmic-nix/cosmic-flake/master' is dirty
this derivation will be built:
  /nix/store/5zhcgpsfxnh7msl09qwfjwhfx8kh60pp-cosmic-osd-0.1.0.drv
building '/nix/store/5zhcgpsfxnh7msl09qwfjwhfx8kh60pp-cosmic-osd-0.1.0.drv'...
cosmic-osd> unpacking sources
cosmic-osd> unpacking source archive /nix/store/aiz5fhc4m35wxgzdpkrkya5yjp185nf9-source
cosmic-osd> source root is source
cosmic-osd> patching sources
cosmic-osd> Executing configureCargoCommonVars
cosmic-osd> copying cargo artifacts from /nix/store/f8bnqb761l52ylmsr5ngq84zvxd53rfd-cosmic-osd-deps-0.1.0/target to target
cosmic-osd> updateAutotoolsGnuConfigScriptsPhase
cosmic-osd> configuring
cosmic-osd> will append /build/source/.cargo-home/config.toml with contents of /nix/store/ylhp2clsg060jdhyrlfzsp7nqcl27r88-vendor-cargo-deps/config.toml
cosmic-osd> default configurePhase, nothing to do
cosmic-osd> building
cosmic-osd> ++ command cargo --version
cosmic-osd> cargo 1.72.0 (103a7ff2e 2023-08-15)
cosmic-osd> ++ command cargo build --release --message-format json-render-diagnostics --locked
cosmic-osd>    Compiling cosmic-osd v0.1.0 (/build/source)
cosmic-osd> error: fl!() had a problem reading i18n config file "/build/source/i18n.toml": Cannot read file "/build/source/i18n.toml" in the current working directory Ok("/build/source") because No such file or directory (os error 2).
cosmic-osd>        
cosmic-osd>          = help: Try creating the `i18n.toml` configuration file.
cosmic-osd>        
cosmic-osd>   --> src/main.rs:20:9
cosmic-osd>    |
cosmic-osd> 20 |         i18n_embed_fl::fl!($crate::LANG_LOADER, $message_id)
cosmic-osd>    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cosmic-osd>    |
cosmic-osd>   ::: src/components/polkit_dialog.rs:88:29
cosmic-osd>    |
cosmic-osd> 88 |                 msg_cancel: fl!("cancel"),
cosmic-osd>    |                             ------------- in this macro invocation
cosmic-osd>    |
cosmic-osd>    = note: this error originates in the macro `i18n_embed_fl::fl` which comes from the expansion of the macro `fl` (in Nightly builds, run with -Z macro-backtrace for more info)
cosmic-osd> error: fl!() had a problem reading i18n config file "/build/source/i18n.toml": Cannot read file "/build/source/i18n.toml" in the current working directory Ok("/build/source") because No such file or directory (os error 2).
cosmic-osd>        
cosmic-osd>          = help: Try creating the `i18n.toml` configuration file.
cosmic-osd>        
cosmic-osd>   --> src/main.rs:20:9
cosmic-osd>    |
cosmic-osd> 20 |         i18n_embed_fl::fl!($crate::LANG_LOADER, $message_id)
cosmic-osd>    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cosmic-osd>    |
cosmic-osd>   ::: src/components/polkit_dialog.rs:89:35
cosmic-osd>    |
cosmic-osd> 89 |                 msg_authenticate: fl!("authenticate"),
cosmic-osd>    |                                   ------------------- in this macro invocation
cosmic-osd>    |
cosmic-osd>    = note: this error originates in the macro `i18n_embed_fl::fl` which comes from the expansion of the macro `fl` (in Nightly builds, run with -Z macro-backtrace for more info)
cosmic-osd> error: fl!() had a problem reading i18n config file "/build/source/i18n.toml": Cannot read file "/build/source/i18n.toml" in the current working directory Ok("/build/source") because No such file or directory (os error 2).
cosmic-osd>        
cosmic-osd>          = help: Try creating the `i18n.toml` configuration file.
cosmic-osd>        
cosmic-osd>   --> src/main.rs:20:9
cosmic-osd>    |
cosmic-osd> 20 |         i18n_embed_fl::fl!($crate::LANG_LOADER, $message_id)
cosmic-osd>    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cosmic-osd>    |
cosmic-osd>   ::: src/components/polkit_dialog.rs:90:46
cosmic-osd>    |
cosmic-osd> 90 |                 msg_authentication_required: fl!("authentication-required"),
cosmic-osd>    |                                              ------------------------------ in this macro invocation
cosmic-osd>    |
cosmic-osd>    = note: this error originates in the macro `i18n_embed_fl::fl` which comes from the expansion of the macro `fl` (in Nightly builds, run with -Z macro-backtrace for more info)
cosmic-osd> error: fl!() had a problem reading i18n config file "/build/source/i18n.toml": Cannot read file "/build/source/i18n.toml" in the current working directory Ok("/build/source") because No such file or directory (os error 2).
cosmic-osd>        
cosmic-osd>          = help: Try creating the `i18n.toml` configuration file.
cosmic-osd>        
cosmic-osd>   --> src/main.rs:20:9
cosmic-osd>    |
cosmic-osd> 20 |         i18n_embed_fl::fl!($crate::LANG_LOADER, $message_id)
cosmic-osd>    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cosmic-osd>    |
cosmic-osd>   ::: src/components/polkit_dialog.rs:91:39
cosmic-osd>    |
cosmic-osd> 91 |                 msg_invalid_password: fl!("invalid-password"),
cosmic-osd>    |                                       ----------------------- in this macro invocation
cosmic-osd>    |
cosmic-osd>    = note: this error originates in the macro `i18n_embed_fl::fl` which comes from the expansion of the macro `fl` (in Nightly builds, run with -Z macro-backtrace for more info)
cosmic-osd> error: proc macro panicked
cosmic-osd>   --> src/main.rs:11:67
cosmic-osd>    |
cosmic-osd> 11 | pub static LANG_LOADER: Lazy<FluentLanguageLoader> = Lazy::new(|| fluent_language_loader!());
cosmic-osd>    |                                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^
cosmic-osd>    |
cosmic-osd>    = help: message: fluent_language_loader!() had a problem reading i18n config file "/build/source/i18n.toml": Cannot read file "/build/source/i18n.toml" in the current working directory Ok("/build/source") because No such file or directory (os error 2).
cosmic-osd> error: proc-macro derive panicked
cosmic-osd>   --> src/main.rs:13:10
cosmic-osd>    |
cosmic-osd> 13 | #[derive(RustEmbed)]
cosmic-osd>    |          ^^^^^^^^^
cosmic-osd>    |
cosmic-osd>    = help: message: #[derive(RustEmbed)] folder '/build/source/i18n' does not exist. cwd: '/build/source'
cosmic-osd> error[E0277]: the trait bound `Localizations: RustEmbed` is not satisfied
cosmic-osd>   --> src/main.rs:30:39
cosmic-osd>    |
cosmic-osd> 30 |     i18n_embed::select(&*LANG_LOADER, &Localizations, &requested_languages)
cosmic-osd>    |                                       ^^^^^^^^^^^^^^ the trait `RustEmbed` is not implemented for `Localizations`
cosmic-osd>    |
cosmic-osd>    = note: required for `Localizations` to implement `I18nAssets`
cosmic-osd>    = note: required for the cast from `&Localizations` to `&dyn I18nAssets`
cosmic-osd> For more information about this error, try `rustc --explain E0277`.
cosmic-osd> error: could not compile `cosmic-osd` (bin "cosmic-osd") due to 7 previous errors
error: builder for '/nix/store/5zhcgpsfxnh7msl09qwfjwhfx8kh60pp-cosmic-osd-0.1.0.drv' failed with exit code 101;
       last 10 log lines:
       >   --> src/main.rs:30:39
       >    |
       > 30 |     i18n_embed::select(&*LANG_LOADER, &Localizations, &requested_languages)
       >    |                                       ^^^^^^^^^^^^^^ the trait `RustEmbed` is not implemented for `Localizations`
       >    |
       >    = note: required for `Localizations` to implement `I18nAssets`
       >    = note: required for the cast from `&Localizations` to `&dyn I18nAssets`
       >
       > For more information about this error, try `rustc --explain E0277`.
       > error: could not compile `cosmic-osd` (bin "cosmic-osd") due to 7 previous errors
       For full logs, run 'nix log /nix/store/5zhcgpsfxnh7msl09qwfjwhfx8kh60pp-cosmic-osd-0.1.0.drv'.

No visible OSD

When I use the applet to increase the audio volume no OSD is displayed.
I am using Lemur Pro with an external monitor connected through USB-c

Also the keyboard function keys do not inc/dec the audio volume

FR: modify a percentage exponentially

It's really annoying on my laptop, because the minimal luminosity is too low, and the minimal luminosity + 1 is too high.

I would really prefer if the click on the brightness button start by increasing by one or two. And incremental click will up this delta. Let's say 1, then 2, then 3, 4, and 5.

pkexec dialogue no longer displays for cosmic-store

Recently, cosmic-store stopped being able to prompt for password entry when installing deb packages.
I narrowed the commit there down to pop-os/cosmic-store@5764c9f

@jackpot51 indicated that, given the lack of a password prompt, it was likely a cosmic-osd issue
I don't understand PackageKit well, but presumably something other than tx.set_hints(&["interactive=true"])?; (deleted at what would be line 249 in src/backend/package kit.rs in pop-os/cosmic-store@5764c9f) should be triggering the prompt to be spawned.

Only show OSDs when media keys or hot keys are used

For sliders or toggles in applets or Settings, the user has the feedback from the interface already. I think OSDs only show up with media keys or hot keys. I haven't thought of another scenario when they should.

Autohide dock space not considered

To reproduce:

  • Set Dock to Autohide
  • Go to an empty workspace
  • Use a hotkey
  • OSD will appear over the dock

I think the best solution is to add space if the dock is present rather than always adding space as thought it's there. Same bug applies to the Launcher and App Library. I'll create additional issues.

Authorization dialog does not respect system theming

When attempting to install a .deb, users are prompted for their password. This popup does not respect system theming. The icon is also incorrect, I believe.

In this example, the default window colour is a shade of red, and accent colour is a shade of yellow:
screenshot-2024-04-05-00-06-47

Authorization required, but no authorization protocol specified

distro : ArchLinux
pkg : cosmic-osd-git r80.929a741-1

I tried running gameconqueror in cosmic but it didn't show the dialog box for me to enter my password

$ gameconqueror
Error executing command as another user: Not authorized
sudo gameconqueror
Authorization required, but no authorization protocol specified

I have to run command before I run gameconqueror
$ xhost +SI:localuser:root

expect :

  1. If I run gameconqueror in user mode, it should pop up a dialog for me to enter my password
  2. If I run gameconqueror in sudo mode, it should run seamlessly
  3. do not need $ xhost +SI:localuser:root

reference :
gameconqueror works very well on KDE6 wayland

I'm not sure whether this error should be reported in cosmic-comp or here,
but since it has something to do with polkit, I report it here first, please accept my apology for the mistake

Brightness OSD syncing issues

To reproduce:

  • Use the battery applet to increase LCD brightness to 100%
  • Attempt to use the brightness up hotkey
    • The OSD does not appear
  • Use the brightness down hotkey
    • The OSD will appear and the value will be low (17-20%)
  • Brightness up hotkey will work again until at 100% (but it's only around 19% on the OSD)

Tested on the darp8 with open firmware.

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.