pop-os / cosmic-osd Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
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'.
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
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.
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.
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.
To reproduce:
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.
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 :
$ 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
The OSD jumps from 0 to 27 when the applet is at 2% and volume is low.
Not sure why this is, but for some reason let session = LogindSessionProxy::new(system_connection).await?;
fails and returns Failed to create session connection: name already taken on the bus
This only happens on release builds however, debug builds work fine.
To reproduce:
Tested on the darp8 with open firmware.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.