Comments (13)
I tried to reproduce, but exo-open fails to find TerminalEmulator when installing only it. As i don't want to pull in the whole XFCE ecosystem, i leave this one for you. Most probably something in /src/common/detectTerminalShell.c
or src/common/packages.c
. Run with --multithreading false
to see if it is the shell or the package code that crashes.
from fastfetch.
Turning off multithreading just makes it crash later in the process
It makes it past the package module just fine.
It seems to be Thunar related (not exo-open), as setting the command line to just be "alacritty" will produce the same crash.
edit: Also happens with tilix and xfce4-terminal. Neofetch works fine.
from fastfetch.
Seems like an error in src/common/detectWMDE.c
. Can you check that? Probably an error in XFCE specific code.
from fastfetch.
Possible that sessionDesktop is somehow NULL
? applyPrettyNameIfWM
doesn't check for that even that case is possible, see this line (365):
//If sessionDesktop is a known WM, set it.
applyPrettyNameIfWM(result, result->sessionDesktop, &protocolHint);
the check must be added anyway at top of the function, similar to applyPrettyNameIfDE
:
if(name == NULL || *name == '\0')
return;
If you open a PR, and this is not the error, you can include that fix too.
from fastfetch.
So there's definitely something weird going on with with terminal detection when launched from Thunar.
Plasma/KWin:
LXQt/Openbox:
The only one that actually segfaults is regular Openbox.
from fastfetch.
I added
if(processName == NULL || *processName == '\0')
return;
to the start of applyPrettyNameIfWM
.
That's what you meant, right?
Edit: The segfault is gone - the garbage output is still there as with the others though.
from fastfetch.
Here's the process that's launched:
from fastfetch.
The terminal font module seems to know the terminal name at least:
from fastfetch.
Turning off multithreading removes the random garbage on each run and leaves the line blank. I'm not sure where to go from here.
Is it safe to call getTerminalShell()
recursively?
from fastfetch.
Should be. However im still unable to reproduce, even in a VM with similar setup. This makes it hard to find the cause. Maybe use gdb too see where things go wrong?
from fastfetch.
In terminal.c,
if(instance->config.terminalFormat.length == 0)
{
ffPrintLogoAndKey(instance, FF_TERMINAL_MODULE_NAME, 0, &instance->config.terminalKey);
// puts(result->terminalExeName);
printf("\nresult->terminalProcessName: %s\nresult->terminalExe: %s\nresult->terminalExeName: %s\n", result->terminalProcessName.chars, result->terminalExe.chars, result->terminalExeName);
}
So result->terminalExeName
is not valid for some reason.
Here's the terminal launched normally:
from fastfetch.
Is it possible that your terminalExe
ends with a slash at any point? This would fail then:
uint32_t lastSlashIndex = ffStrbufLastIndexC(exe, '/');
if(lastSlashIndex < exe->length)
*exeName = exe->chars + lastSlashIndex + 1;
from fastfetch.
Inactive.
from fastfetch.
Related Issues (20)
- [BUG] Wrongly GPU detection? HOT 10
- [FEAT] Release filename without version
- [BUG] Segfault when building CPU name without BIOS Vendor ID available HOT 1
- where is fastfetch-linux-amd64.deb?
- [BUG] Terminal Font not shown in Scoop's Windows Terminal HOT 1
- [FEAT] Make an option to print only specific colors (equivalentr to block_range) HOT 5
- [BUG] fastfetch caused core dumped on vmware virtual machine HOT 1
- [BUG] Fastfetch caused core dump on vm HOT 3
- [FEAT] Get the total disk writes for the current session. HOT 8
- How to shorten the theme name? HOT 1
- [FEAT] Disable fetching for specific package manager HOT 2
- [FEAT] Multidevice bcachefs filesystem for disk module HOT 5
- [BUG] Wrong GPU detection on latest version HOT 11
- [FEAT] Additional Temperature Formatting HOT 2
- [BUG] Display of Terminal being used changed from older versions HOT 5
- How to translate HOT 2
- [BUG] source: Error while reading file HOT 1
- Truncated/shortened lines in ```help_format.txt``` HOT 1
- [BUG] Completely blocked and unable to be fully displayed in the latest version of WSL HOT 3
- adding repo is failing on ubuntu 20.04 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastfetch.