this is unnecessary

This commit is contained in:
speedie 2023-05-01 19:33:25 +02:00
parent 1dce400025
commit 7509780d48

View file

@ -5,8 +5,6 @@ readargs(int argc, char *argv[])
int j = 0; int j = 0;
int k = 0; int k = 0;
int profilecmd = 0;
// check if we should load the xrdb/config, because it needs to be loaded before arguments are checked // check if we should load the xrdb/config, because it needs to be loaded before arguments are checked
// priority: internal -> config -> xresources -> arguments // priority: internal -> config -> xresources -> arguments
for (j = 1; j < argc; j++) { for (j = 1; j < argc; j++) {
@ -56,13 +54,6 @@ readargs(int argc, char *argv[])
// init/read xrdb // init/read xrdb
if (xresources) { if (xresources) {
XrmInitialize(); XrmInitialize();
// also load config/profile if .Xresources
if (loadconfig) {
profilecmd = system("command -v spmenu_profile > /dev/null && spmenu_profile --spmenu-load-default-profile > /dev/null");
}
if (!profilecmd||profilecmd) // load .Xresources, profilecmd is only here to avoid an annoying gcc warning
load_xresources(); load_xresources();
} }