Talk:Using X without a Display Manager: Difference between revisions

From NixOS Wiki
Latest comment: 7 June 2018 by Samueldr
imported>Redfish64
mNo edit summary
imported>Samueldr
No edit summary
Line 1: Line 1:
The following excerpt from this script doesn't seem like the best practice. It's modifying the nix-store directly:
The following excerpt from this script doesn't seem like the best practice. It's modifying the nix-store directly:


  #make the intel backlight helper setuid if it isn't already
#make the intel backlight helper setuid if it isn't already
  xf86videointel_path=$(get_pkg_path xorg.xf86videointel)
xf86videointel_path=$(get_pkg_path xorg.xf86videointel)
  backlight_helper_path="${xf86_video_intel_path}/libexec/xf86-video-intel-backlight-helper"
backlight_helper_path="${xf86_video_intel_path}/libexec/xf86-video-intel-backlight-helper"
  if [ -e "$backlight_helper_path" -a ! -u "$backlight_helper_path" ]; then
if [ -e "$backlight_helper_path" -a ! -u "$backlight_helper_path" ]; then
      sudo chmod +s ${xf86_video_intel_path}/libexec/xf86-video-intel-backlight-helper
sudo chmod +s ${xf86_video_intel_path}/libexec/xf86-video-intel-backlight-helper
  fi
fi
 
-- [[User:Redfish64]]
 
:You're right, this page is a WIP by a user, I'll add a note describing how it isn't using best-practices with NixOS.
:--[[User:Samueldr|samueldr]] ([[User talk:Samueldr|talk]]) 15:26, 7 June 2018 (UTC)

Revision as of 15:26, 7 June 2018

The following excerpt from this script doesn't seem like the best practice. It's modifying the nix-store directly:

  1. make the intel backlight helper setuid if it isn't already

xf86videointel_path=$(get_pkg_path xorg.xf86videointel) backlight_helper_path="${xf86_video_intel_path}/libexec/xf86-video-intel-backlight-helper" if [ -e "$backlight_helper_path" -a ! -u "$backlight_helper_path" ]; then sudo chmod +s ${xf86_video_intel_path}/libexec/xf86-video-intel-backlight-helper fi

-- User:Redfish64

You're right, this page is a WIP by a user, I'll add a note describing how it isn't using best-practices with NixOS.
--samueldr (talk) 15:26, 7 June 2018 (UTC)Reply