KittyKatt / screenFetch

Fetches system/theme information in terminal for Linux desktop screenshots.
GNU General Public License v3.0
3.83k stars 453 forks source link

Screenfetch not working with plasma 5.8 #395

Open ghost opened 7 years ago

ghost commented 7 years ago

Running screenfetch with this versions returns 2 errors, nothing appears These are the errors:

[[ ! ]] KCrash: Application 'kded5' crashing...
[[ ! ]] KCrash: Attempting to start /usr/lib/drkonqi from kdeinit

Maybe it is an upstream issue or an API change, just informing this c:

darealshinji commented 7 years ago

Are these commands working for you?

kded --version
kded5 --version
kded4 --version
ghost commented 7 years ago

The first one returns command not found The second one returns something but then an error

kded5 5.27.0
KCrash: Application 'kded5' crashing...
KCrash: Attempting to start /usr/lib/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__0
[1]  + 8901 suspended (signal)  kded5 --version

And the last one gives no problems

Qt: 4.8.7
KDE Development Platform: 4.14.24
KDE Daemon: 4.14.24
darealshinji commented 7 years ago

It's the same for me with kded and kded4, but kded5 works fine for me:

$ kded5 --version
kded5 5.27.0
ghost commented 7 years ago

Im currently using archlinux, maybe that has something to do with this issue :/

evilxyz commented 7 years ago

same, wait update to fix it

npit commented 7 years ago

Same here, with arch linux.

npit commented 7 years ago

The error seems to be from a buggy kde configuration with ibus. Removing the file in /home/USERNAME/.config/ibus/bus/ does the trick.

ghost commented 7 years ago

I dont have installed ibus, that folder doesn't exist, the problem still exists :/ The problem still appears.

npit commented 7 years ago

Go to ~/.config , make a directory ~/backup-.config. Move half of everything in ~/.config into the backup folder. If kded5 still crashes, move half of what's left. Repeat until it stops crashing. When it does, the culprit configuration file will be one in the last transfer you made. Move files around until you find what it is and delete it or fix what setting is false, if possible. When you do, restore everything from the backup folder, overwriting potential collisions.

Edit: Sadly whenever that file is generated again by ibus, kded5 and subsequently screenfetch start crashing again.

jiaan commented 7 years ago

For me this issue seems to be related to the theme that I use. I don't have this issue when I use kvantum theme engine, but as soon as I revert back to breeze theme, screenfetch crashes kded. I have never installed ibus so I don't think this problem is related to ibus.

redapple0204 commented 7 years ago

I think this is about locale settings,try to edit /usr/bin/screenfetch and comment these lines

LANG=C LANGUAGE=C LC_ALL=C

ghost commented 7 years ago

Hmm... after searching for other problems related to kde (some applications crash on close), the solution for that was adding this line to your .xprofile file in your home

export KDE_DEBUG=1

this removed the crash reports and "happily" and unknowingly also fixed screenfetch.

npit commented 7 years ago

The above fix works for me as well.

darealshinji commented 7 years ago

Does it also fix the issue if you remove the line from .xprofile but instead add it to the top of screenFetch?

craneyuan commented 7 years ago

I meet the same problem, and I am very glad to solve this problem. I just add a line export KDE_DEBUG=1 to my .xprofile in my home. 😄

Aleynikovich commented 7 years ago

Hi, I'm using arch with i3wm, having this issue. Tried to comment out those 3 lines and added .xprofile to my home with export KDE_DEBUG=1 but that didn't fix it.