Skip to content

Commit

Permalink
Fixed ugly X cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
JezerM committed Aug 21, 2021
1 parent 2b7e48b commit 4cf4c34
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,12 @@ let lightdm_path = root_path + "etc/lightdm/"
let webg_path = root_path + "usr/share/web-greeter/"
let xgreeters_path = root_path + "/usr/share/xgreeters/"
let applications_path = root_path + "/usr/share/applications/"
let xdg_ldm_path = root_path + "/etc/xdg/lightdm/lightdm.conf.d/"

fs.mkdirSync(app_path, {recursive: true})
fs.mkdirSync(lightdm_path, {recursive: true})
fs.mkdirSync(webg_path, {recursive: true})
fs.mkdirSync(xdg_ldm_path, {recursive: true})

function copy_electron() {
console.log("Copying electron binary")
Expand All @@ -94,7 +96,10 @@ fs.copySync("./dist/web-greeter.yml", lightdm_path + "web-greeter.yml");
fs.copySync("./dist/nody-xgreeter.desktop", xgreeters_path + "nody-greeter.desktop");
fs.copySync("./dist/nody-greeter.desktop", applications_path + "nody-greeter.desktop");
fs.copySync("./themes/", webg_path + "themes/")
fs.moveSync(webg_path + "themes/_vendor/", webg_path + "_vendor/")
fs.copySync("./dist/90-greeter-wrapper.conf", xdg_ldm_path + "90-greeter-wrapper.conf");
fs.copySync("./dist/Xgreeter", lightdm_path + "Xgreeter");
fs.chmodSync(lightdm_path + "Xgreeter", 0755);
fs.moveSync(webg_path + "themes/_vendor/", webg_path + "_vendor/", {overwrite: true});

copy_electron()

Expand Down
2 changes: 2 additions & 0 deletions dist/90-greeter-wrapper.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Seat:*]
greeter-wrapper=/etc/lightdm/Xgreeter
7 changes: 7 additions & 0 deletions dist/Xgreeter
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
#
# LightDM wrapper to run around greeter X sessions.

xsetroot -cursor_name left_ptr

exec $@

0 comments on commit 4cf4c34

Please sign in to comment.