-
Notifications
You must be signed in to change notification settings - Fork 726
Drop xterm for xfce terminal #2208
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool! Need to run clang-format-12
on this:
--- src/platform/client/client_platform_linux.cpp (before formatting)
+++ src/platform/client/client_platform_linux.cpp (after formatting)
@@ -26,7 +26,8 @@
{
assert(!instance_name.isEmpty() && "Instance name cannot be empty");
QProcess::startDetached(
- "x-terminal-emulator", {"--initial-title", instance_name, "-e", QString("bash -c 'multipass shell %1 || read'").arg(instance_name)});
+ "x-terminal-emulator",
+ {"--initial-title", instance_name, "-e", QString("bash -c 'multipass shell %1 || read'").arg(instance_name)});
}
bors try |
Codecov Report
@@ Coverage Diff @@
## main #2208 +/- ##
=======================================
Coverage 82.98% 82.98%
=======================================
Files 186 186
Lines 9725 9725
=======================================
Hits 8070 8070
Misses 1655 1655 Continue to review full report at Codecov.
|
tryBuild succeeded: |
I'd guess that it is a matter of adding a font that supplies the missing codepoints. Will experiment on Monday. |
Another problem (maybe just another manifestation):
|
Just as a sanity check, this wasn't working right with xterm either:
Same example with xfce:
|
OK, I finally noticed that I can set the encoding to Unicode [Terminal=>Set encoding=>Unicode] and that works. So, just need to figure out the right incantation. |
bors try |
tryBuild succeeded: |
bors try |
tryBuild failed: |
FFS that's less readable: - QProcess::startDetached(
- "xfce4-terminal",
- {"--initial-title", instance_name, "-e", QString("bash -c 'multipass shell %1 || read'").arg(instance_name)});
+ QProcess::startDetached("xfce4-terminal", {"--initial-title", instance_name, "-e",
+ QString("bash -c 'multipass shell %1 || read'").arg(instance_name)}); |
bors try |
@Saviq as you've been testing the earlier version it's worth cleaning out |
tryBuild succeeded: |
Co-authored-by: Michał Sawicz <[email protected]>
bors try |
🔒 Permission denied Existing reviewers: click here to make AlanGriffiths a reviewer |
Co-authored-by: Michał Sawicz <[email protected]>
bors try |
tryBuild failed: |
Is it a problem that we can right click on the terminal and open a new tab or new console that essentially escapes the snap confinement? Ideally, that would instead just open another shell into the instance. |
Don't say it's escaping snap confinement. It's not - it's as if you ran
That sounds like heavy customization of the terminal. I would rather we spend the time on running the user's preferred terminal instead. |
+1 |
Oh right, it is. Then that's fine. |
bors try |
tryBuild failed: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works fine, handful of tweaks / questions inline.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
bors merge
2208: Drop xterm for xfce terminal r=Saviq a=AlanGriffiths Co-authored-by: Alan Griffiths <[email protected]>
Build failed: |
bors retry |
2208: Drop xterm for xfce terminal r=Saviq a=AlanGriffiths Co-authored-by: Alan Griffiths <[email protected]>
Build failed: |
bors retry |
Build failed: |
No description provided.