snowfallorg / nix-software-center

A simple gtk4/libadwaita software center to easily install and manage nix packages
GNU General Public License v3.0
560 stars 16 forks source link

`OpenConf` don't work with `nix shell` #15

Open LEv145 opened 1 year ago

LEv145 commented 1 year ago

Commands:

$ nix shell github:vlinkz/nix-software-center
$ RUST_LOG=debug RUST_BACKTRACE=full nix-software-center
INFO  nix_software_center > Resource loaded: /nix/store/visjfp5lb3253q2d7zbmgnspy3v5k2vg-nix-software-center-0.1.0/share/nix-software-center/resources.gresource

(nix-software-center:626907): Gtk-WARNING **: 18:22:17.994: Unknown key gtk-button-images in /home/lev145/.config/gtk-4.0/settings.ini

(nix-software-center:626907): Gtk-WARNING **: 18:22:17.994: Unknown key gtk-menu-images in /home/lev145/.config/gtk-4.0/settings.ini

(nix-software-center:626907): Gtk-WARNING **: 18:22:17.994: Unknown key gtk-toolbar-style in /home/lev145/.config/gtk-4.0/settings.ini

(nix-software-center:626907): Adwaita-WARNING **: 18:22:18.053: Using GtkSettings:gtk-application-prefer-dark-theme with libadwaita is unsupported. Please use AdwStyleManager:color-scheme instead.
 DEBUG nix_software_center::ui::window > No config found
 DEBUG nix_software_center::ui::window > userpkgtype: Profile
 DEBUG nix_software_center::ui::window > syspkgtype: None
 DEBUG reqwest::connect                > starting new connection: https://nmcheck.gnome.org/
 INFO  nix_software_center::ui::window > AppMsg::SetDarkMode(true)
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: OpenConf', /build/nix-software-center-0.1.0-vendor.tar.gz/relm4/src/channel/component.rs:67:34
stack backtrace:
   0:     0x558126da2573 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::he3010f3ff51b55ac
   1:     0x558126ddf22c - core::fmt::write::hdfaf46c08a67cd92
   2:     0x558126dbc475 - std::io::Write::write_fmt::h0c8cb8452451d559
   3:     0x558126dc2f34 - std::panicking::default_hook::{{closure}}::h5f89d231703325b8
   4:     0x558126dc2b74 - std::panicking::default_hook::h0daa4414d4591360
   5:     0x558126dc3513 - std::panicking::rust_panic_with_hook::hc7eecadc23f906e1
   6:     0x558126da28d7 - std::panicking::begin_panic_handler::{{closure}}::h425c6c4810da3633
   7:     0x558126da26b4 - std::sys_common::backtrace::__rust_end_short_backtrace::h75a4c4b09ed50e09
   8:     0x558126dc3202 - rust_begin_unwind
   9:     0x5581264c0433 - core::panicking::panic_fmt::hed5cc02befa9fbd6
  10:     0x5581264c0563 - core::result::unwrap_failed::he50d59caf960046c
  11:     0x5581266b91fc - <O as gtk4::auto::button::ButtonExt>::connect_clicked::clicked_trampoline::h5b74f8ce9382e7c6
  12:     0x7f9c5ebe97d9 - _g_closure_invoke_va
  13:     0x7f9c5ec0364d - g_signal_emit_valist
  14:     0x7f9c5ec0394f - g_signal_emit
  15:     0x7f9c5f0c0979 - _gtk_marshal_VOID__INT_DOUBLE_DOUBLEv
  16:     0x7f9c5ebe97d9 - _g_closure_invoke_va
  17:     0x7f9c5ec0364d - g_signal_emit_valist
  18:     0x7f9c5ec0394f - g_signal_emit
  19:     0x7f9c5f18c20e - gtk_gesture_click_end
  20:     0x7f9c5ebec642 - g_cclosure_marshal_VOID__BOXEDv
  21:     0x7f9c5ebe97d9 - _g_closure_invoke_va
  22:     0x7f9c5ec0364d - g_signal_emit_valist
  23:     0x7f9c5ec0394f - g_signal_emit
  24:     0x7f9c5f189247 - _gtk_gesture_check_recognized
  25:     0x7f9c5f18a9bb - gtk_gesture_handle_event
  26:     0x7f9c5f18d82e - gtk_gesture_single_handle_event
  27:     0x7f9c5f15cef6 - gtk_event_controller_handle_event
  28:     0x7f9c5f2e6507 - gtk_widget_run_controllers
  29:     0x7f9c5f2edca4 - _gtk_widget_captured_event
  30:     0x7f9c5f1d467e - gtk_propagate_event_internal
  31:     0x7f9c5f1d4d4b - gtk_main_do_event
  32:     0x7f9c5f2fa1bc - surface_event
  33:     0x7f9c5f3dfca9 - _gdk_marshal_BOOLEAN__POINTER
  34:     0x7f9c5f408cbf - gdk_surface_event_marshaller
  35:     0x7f9c5ebe95af - g_closure_invoke
  36:     0x7f9c5ebfc917 - signal_emit_unlocked_R
  37:     0x7f9c5ec02eef - g_signal_emit_valist
  38:     0x7f9c5ec0394f - g_signal_emit
  39:     0x7f9c5f40c320 - gdk_surface_handle_event
  40:     0x7f9c5f4575ea - gdk_event_source_dispatch
  41:     0x7f9c5eaed9db - g_main_context_dispatch
  42:     0x7f9c5eaedc88 - g_main_context_iterate.constprop.0
  43:     0x7f9c5eaedd3f - g_main_context_iteration
  44:     0x7f9c5ed1810d - g_application_run
  45:     0x5581264f23d1 - relm4::app::RelmApp::run::hd82e66cdfba8b6d0
  46:     0x5581264f320c - nix_software_center::main::h22d487332a554dd6
  47:     0x5581264d6543 - std::sys_common::backtrace::__rust_begin_short_backtrace::ha22543f47596c86e
  48:     0x5581264f17d9 - std::rt::lang_start::{{closure}}::he2872a050c12132c
  49:     0x558126dbb8a8 - std::rt::lang_start_internal::h0b59928b60b7c3a2
  50:     0x5581264f32f8 - main
  51:     0x7f9c5e13624e - __libc_start_call_main
  52:     0x7f9c5e136309 - __libc_start_main@@GLIBC_2.34
  53:     0x5581264c06b5 - _start
  54:                0x0 - <unknown>
vlinkz commented 1 year ago

Hm might be an issue with the version of Relm4 being used. Just curious what desktop environment or window manager are you using?

LEv145 commented 1 year ago

Hm might be an issue with the version of Relm4 being used. Just curious what desktop environment or window manager are you using?

services.xserver.displayManager = {
sddm.enable = true;
};
services.xserver.desktopManager.plasma5.enable = true;
LEv145 commented 1 year ago

Looks like nix-software-center is running now! изображение

LEv145 commented 1 year ago

Almost works)

$ transmission-gtk 
transmission-gtk: /nix/store/5lp5v0sa76mhvc42bdc4z8vxwysp18r9-gcc-11.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /nix/store/jlx2nfpi73sjb0f3096cly5ik8arw9k9-icu4c-72.1/lib/libicuuc.so.72)