-
-
Notifications
You must be signed in to change notification settings - Fork 13.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onedriver: doesn't work on KDE plasma - TLS/SSL support not available; install glib-networking #308666
Comments
made an issue about it NixOS/nixpkgs#308666
Hello @Yeshey and thanks for reporting this! The As for the GIO_EXTRA_MODULES variable I am not sure there is something I can do at the derivation level. |
Thanks @massix, I can confirm the version on the unstable channel doesn't crash with wrapProgram "$out/bin/onedriver-launcher" --set GIO_EXTRA_MODULES ${glib-networking.out}/lib/gio/modules but it didn't fix it, running [...]
makeCWrapper '/nix/store/8520msjgyj74wfz8apn89m4bjcc156by-onedriver-0.14.1/bin/.onedriver-launcher-wrapped_' \
--inherit-argv0 \
--prefix 'GIO_EXTRA_MODULES' ':' '/nix/store/dykpd7s69f2rfhdjmgc187r3ai0xkpgk-dconf-0.40.0-lib/lib/gio/modules' \
--prefix 'GIO_EXTRA_MODULES' ':' '/nix/store/xrp3b987wmblhv444xk7aa6v24rgq6am-glib-networking-2.78.0/lib/gio/modules' \
--set 'GDK_PIXBUF_MODULE_FILE' '/nix/store/r383rvp49gbkv3d7xzgykf1vycickivj-librsvg-2.57.0/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache' \
--prefix 'XDG_DATA_DIRS' ':' '/nix/store/6ywqswdc2q57mhysnh3jp6dcbxd62yz4-gsettings-desktop-schemas-45.0/share/gsettings-schemas/gsettings-desktop-schemas-45.0:/nix/store/8d431fhwmpfmf9rnpslx8pn98l151wq9-gtk+3-3.24.41/share/gsettings-schemas/gtk+3-3.24.41' \
--prefix 'XDG_DATA_DIRS' ':' '/nix/store/8520msjgyj74wfz8apn89m4bjcc156by-onedriver-0.14.1/share'
[...] I'll keep this open for now because of this problem and update the title the workaround for now is adding |
This should fix NixOS#308666
Hey, I just pushed a small branch which should fix your issue with
|
In my attempt in my previous comment, I had also tried a method that seemed to have set the correct GIO_EXTRA_MODULES path, but I tried your derivation and still: I grabbed your commit like this and it took a couple hours to build, it seems to have built a lot of programs besides onedriver, I'm still not a great nixOS wizard: {
inputs,
config,
lib,
pkgs,
...
}:
let
cfg = config.myHome.onedriver;
inherit (pkgs.stdenv.hostPlatform) system;
patchedPkgs = import (fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/4c97436473b756ee6d02e58e43de673d367c73fb.tar.gz";
sha256 = "sha256:1xnshswwyhnx85mcrc31l8nl0naklfnq8fwfpaa6nxycl65xsw1i";
}) {
inherit system;
config.allowUnfree = true;
};
onedriverPackage = patchedPkgs.onedriver;
in
{
options.myHome.onedriver = with lib; {
enable = mkEnableOption "onedriver";
onedriverFolder = mkOption {
type = types.str;
example = "/mnt/hdd-btrfs/Yeshey/OneDriver";
};
serviceName = mkOption {
type = types.str;
example = "onedriver@home-yeshey-OneDriver";
description = "use `systemd-escape --template [email protected] --path /path/to/mountpoint` to figure out";
};
};
config = lib.mkIf cfg.enable {
home.packages = [
onedriverPackage
];
onedriver@.service --path ${cfg.onedriverFolder}";
Unit = {
Description = "onedriver";
};
Service = {
ExecStart = "${pkgs.onedriver}/bin/onedriver ${cfg.onedriverFolder}";
# ExecStopPost = "${wrapperDir}/bin/fusermount -uz ${cfg.onedriverFolder}";
Restart = "on-abnormal";
RestartSec = "3";
RestartForceExitStatus = "2";
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
};
};
} |
@massix never mind, I'm dumb, forgot to change the package used in |
Trying to use the code from your commit in my own config with callPackage gives me error: evaluation aborted with the following error message: 'Function called without required argument "wrapGAppsHook3" at /nix/store/yp43zx2bvb3f7qkfy97z4bmri7i1irdx-source/pkgs/onedriver-his.nix:9, did you mean "wrapGAppsHook" or "wrapGAppsHook4"?' if I use |
using just |
That is because Glad to know the problem has been fixed for you. As for the blank page, it seems to be an upstream issue with onedriver and Plasma 6 (see jstaf/onedriver#398), but since I don't use Plasma I'm afraid I cannot help.. |
Describe the bug
In gnome runs fine, in KDE plasma there are a couple problems:
no gsettings schemas are installed on the system
TLS/SSL support not available; install glib-networking
Steps To Reproduce
Run
onedriver-launcher
in a pure shell:nix-shell -p onedriver --pure --run onedriver-launcher
, use the+
and try to use itOR
onedriver-launcher
and press the+
button to add a folder.Expected behavior
No errors
Additional context
we're missing the inputs
glib-networking
andwrapGAppsHook
.wrapGAppsHook
should fix the gsettings schemas error (related issue). TheTLS/SSL support not available; install glib-networking
error requires env variableGIO_EXTRA_MODULES
, we should probably wraponedriver
as explained here.Quick and dirty way to make it work now, without wrapping, is adding those dependencies and adding the
GIO_EXTRA_MODULES
variable to the whole system:glib-networking
andwrapGAppsHook
to buildInputs and nativeBuildInputs respectively. (not sure which one for either):GIO_EXTRA_MODULES
variable:We should create a
programs.onedriver
option eventually ahahhaThis is my configuration for the onedriver user service:
Notify maintainers
@massix
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: