cococry / ragnar

Minimal, flexible & user-friendly X tiling window manager
https://ragnarwm.org
GNU General Public License v3.0
997 stars 22 forks source link

HELP #7

Closed 6FaNcY9 closed 1 year ago

6FaNcY9 commented 1 year ago

I wanted to install the WM on pop OS but when i logout and change the desktop i just get a black screen. Also i tried to launch it with the tty i also get a black screen could u maybe tell me where to view for logs for debugging. And some common issues that i have to look for.

FILE: $HOME/.xsession-errors

`Xsession: X session started for vino at Tue May 16 12:47:28 PM CEST 2023
dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
dbus-update-activation-environment: setting DISPLAY=:1
dbus-update-activation-environment: setting XAUTHORITY=/home/vino/.Xauthority
localuser:vino being added to access control list
dbus-update-activation-environment: setting GTK_MODULES=gail:atk-bridge
dbus-update-activation-environment: setting QT_ACCESSIBILITY=1`

THX :D

cococry commented 1 year ago

when you start the WM from tty with startx, it also blackscreens?

6FaNcY9 commented 1 year ago

yes maybe the config.h is missing and the content of .xinitrc is exec ragnar

cococry commented 1 year ago

so you cannot get past startx in any way?

and if not, please send what startx outputs after crash

6FaNcY9 commented 1 year ago

yes but it doesnt crash it just stays black

maybe its becaus of my nvidia gpu

and this is the output of the install script:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
gcc is already the newest version (4:11.2.0-1ubuntu1).
make is already the newest version (4.3-4.1build1).
xorg is already the newest version (1:7.7+23ubuntu2).
xorg-dev is already the newest version (1:7.7+23ubuntu2).
git is already the newest version (1:2.34.1-1ubuntu1.9).
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libfreetype6-dev is already the newest version (2.11.1+dfsg-1ubuntu0.2).
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
Cloning into 'Ragnar'...
remote: Enumerating objects: 242, done.
remote: Counting objects: 100% (11/11), done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 242 (delta 3), reused 1 (delta 0), pack-reused 231
Receiving objects: 100% (242/242), 1.32 MiB | 4.89 MiB/s, done.
Resolving deltas: 100% (136/136), done.
rm -f ragnar
rm -f /usr/bin/ragnar
gcc ragnar.c -o ragnar -I/usr/include/freetype2 -lX11 -lXcursor -lXft -O3 -ffast-math -Wall -Wextra
ragnar.c: In function ‘handle_button_press’:
ragnar.c:464:13: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  464 |             system(BarButtons[i].cmd);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
ragnar.c: In function ‘handle_key_press’:
ragnar.c:492:9: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  492 |         system(TERMINAL_CMD);
      |         ^~~~~~~~~~~~~~~~~~~~
ragnar.c:494:9: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  494 |         system(WEB_BROWSER_CMD);
      |         ^~~~~~~~~~~~~~~~~~~~~~~
ragnar.c:589:9: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  589 |         system(APPLICATION_LAUNCHER_CMD);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cp ragnar /usr/bin/ragnar
cococry commented 1 year ago

try installing alacritty and then press super + enter in the blackscreen. this should open alacritty

maybe its just because you dont have a wallpaper set and there is a bug that the bar is not showing so this could look like a blackscreen.

cococry commented 1 year ago

and it's probably not because of your nvidia gpu because i also have one (rtx 3070) and it works

6FaNcY9 commented 1 year ago

yes your right i can start alacritty, it just doesnt show the bar and no wallpaper

cococry commented 1 year ago

perfect!

i suggest that in your .xinitrc add "nitrogen --restore &" and install nitrogen and set a wallpaper and for the bar, just fullscreen a window and unfullscreen it. this should show the bar. or just press super + i two times.

6FaNcY9 commented 1 year ago

boath solutions doesnt work should i put config.h in $HOME/.config/ragnar/config.h because there is no config file for the vm

cococry commented 1 year ago

the config is managed like in dwm. there is a config.h file in the repo and you have to edit the macro values. than recompile with "sudo make ragnar clean install".

6FaNcY9 commented 1 year ago

thx you very much for the quick response 😇 after school I will try it on my other maschine are there any log files that get created to show why top bar isnt launching?

cococry commented 1 year ago

is the bar also not showing when you hit super + i two times?

cococry commented 1 year ago

This issue has been addressed in the latest release v1.1 (https://github.com/cococry/Ragnar/releases/tag/1.1). After opening a window, the bar will be displayed.