Skip to content
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

Fix usage of readlink to find Xresources #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

scottgreenup
Copy link

This is the first bit of Perl I've ever written.

I was getting a warning and subsequent error:

Use of uninitialized value $xresources in concatenation (.) or string at /home/sgreenup/.urxvt/ext/font-size line 217.
xrdb: -edit requires an argument
usage:  xrdb [-options ...] [filename]

where options include:
 -help               print this help message
 -version            print the program version
 -display host:dpy   display to use
 -all                do all resources [default]
 -global             do screen-independent resources
 -screen             do screen-specific resources for one screen
 -screens            do screen-specific resources for all screens
 -n                  show but don't do changes
 -cpp filename       preprocessor to use [/usr/bin/cpp]
 -nocpp              do not use a preprocessor
 -E                  show preprocessor command & processed input file
 -query              query resources
 -load               load resources from file [default]
 -override           add in resources from file
 -merge              merge resources from file & sort
 -edit filename      edit resources into file
 -backup string      backup suffix for -edit [.bak]
 -symbols            show preprocessor symbols
 -remove             remove resources
 -retain             avoid server reset (avoid using this)
 -quiet              don't warn about duplicates
 -Dname[=value], -Uname, -Idirectory    passed to preprocessor

A - or no input filename represents stdin.

My ~/.Xresources are not symbolically linked, I think that causes readlink to return nothing? Or undefined? Which resulted in this error. I've updated what I think is a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant