Skip to content

Conversation

AlanGriffiths
Copy link
Contributor

No description provided.

Copy link
Contributor

@townsend2010 townsend2010 left a 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)});
 }

@Saviq
Copy link
Collaborator

Saviq commented Aug 21, 2021

bors try

bors bot added a commit that referenced this pull request Aug 21, 2021
@codecov
Copy link

codecov bot commented Aug 21, 2021

Codecov Report

Merging #2208 (6793239) into main (6fecaaf) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6fecaaf...6793239. Read the comment docs.

@Saviq
Copy link
Collaborator

Saviq commented Aug 21, 2021

Something's wrong with unicode, can anything be done about that?

photo_2021-08-21 19 34 02

@bors
Copy link
Contributor

bors bot commented Aug 21, 2021

@AlanGriffiths
Copy link
Contributor Author

Something's wrong with unicode, can anything be done about that?

I'd guess that it is a matter of adding a font that supplies the missing codepoints. Will experiment on Monday.

@AlanGriffiths
Copy link
Contributor Author

Another problem (maybe just another manifestation):

$ locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
C.UTF-8
POSIX

@AlanGriffiths
Copy link
Contributor Author

Something's wrong with unicode, can anything be done about that?

Just as a sanity check, this wasn't working right with xterm either:

ubuntu@test:~$ snap list
Name       Version   Rev    Tracking       Publisher   Notes
core18     20210722  2128   latest/stable  canonicalâ  base
core20     20210702  1081   latest/stable  canonicalâ  base
lxd        4.0.7     21029  4.0/stable/⦠  canonicalâ  -
multipass  1.7.1     5309   latest/stable  canonicalâ  -
snapd      2.51.3    12704  latest/stable  canonicalâ  snapd

Same example with xfce:

ubuntu@test:~$ snap list
Name       Version   Rev    Tracking       Publisher   Notes
core18     20210722  2128   latest/stable  canonical���  base
core20     20210702  1081   latest/stable  canonical���  base
lxd        4.0.7     21029  4.0/stable/���   canonical���  -
multipass  1.7.1     5309   latest/stable  canonical���  -
snapd      2.51.3    12704  latest/stable  canonical���  snapd

@AlanGriffiths
Copy link
Contributor Author

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.

@Saviq
Copy link
Collaborator

Saviq commented Aug 23, 2021

bors try

bors bot added a commit that referenced this pull request Aug 23, 2021
@bors
Copy link
Contributor

bors bot commented Aug 23, 2021

@Saviq
Copy link
Collaborator

Saviq commented Aug 26, 2021

bors try

bors bot added a commit that referenced this pull request Aug 26, 2021
@bors
Copy link
Contributor

bors bot commented Aug 26, 2021

try

Build failed:

@AlanGriffiths
Copy link
Contributor Author

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)});

@Saviq
Copy link
Collaborator

Saviq commented Aug 26, 2021

bors try

bors bot added a commit that referenced this pull request Aug 26, 2021
@AlanGriffiths
Copy link
Contributor Author

AlanGriffiths commented Aug 26, 2021

@Saviq as you've been testing the earlier version it's worth cleaning out ~/snap/multipass/current/config/xfce4/ to get the new options.

@bors
Copy link
Contributor

bors bot commented Aug 26, 2021

Co-authored-by: Michał Sawicz <[email protected]>
@AlanGriffiths
Copy link
Contributor Author

bors try

@bors
Copy link
Contributor

bors bot commented Aug 26, 2021

🔒 Permission denied

Existing reviewers: click here to make AlanGriffiths a reviewer

@AlanGriffiths
Copy link
Contributor Author

bors try

bors bot added a commit that referenced this pull request Aug 26, 2021
@bors
Copy link
Contributor

bors bot commented Aug 26, 2021

try

Build failed:

@townsend2010
Copy link
Contributor

townsend2010 commented Aug 26, 2021

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.

@Saviq
Copy link
Collaborator

Saviq commented Aug 26, 2021

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?

Don't say it's escaping snap confinement. It's not - it's as if you ran snap run --shell multipass.gui.

Ideally, that would instead just open another shell into the instance.

That sounds like heavy customization of the terminal. I would rather we spend the time on running the user's preferred terminal instead.

@AlanGriffiths
Copy link
Contributor Author

Don't say it's escaping snap confinement. It's not - it's as if you ran snap run --shell multipass.gui.

+1

@townsend2010
Copy link
Contributor

Don't say it's escaping snap confinement. It's not - it's as if you ran snap run --shell multipass.gui.

Oh right, it is. Then that's fine.

@AlanGriffiths
Copy link
Contributor Author

bors try

bors bot added a commit that referenced this pull request Aug 31, 2021
@bors
Copy link
Contributor

bors bot commented Aug 31, 2021

try

Build failed:

Copy link
Collaborator

@Saviq Saviq left a 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.

Copy link
Collaborator

@Saviq Saviq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

bors merge

bors bot added a commit that referenced this pull request Aug 31, 2021
2208: Drop xterm for xfce terminal r=Saviq a=AlanGriffiths



Co-authored-by: Alan Griffiths <[email protected]>
@bors
Copy link
Contributor

bors bot commented Aug 31, 2021

Build failed:

@Saviq
Copy link
Collaborator

Saviq commented Aug 31, 2021

bors retry

bors bot added a commit that referenced this pull request Aug 31, 2021
2208: Drop xterm for xfce terminal r=Saviq a=AlanGriffiths



Co-authored-by: Alan Griffiths <[email protected]>
@bors
Copy link
Contributor

bors bot commented Aug 31, 2021

Build failed:

@AlanGriffiths
Copy link
Contributor Author

bors retry

@bors
Copy link
Contributor

bors bot commented Aug 31, 2021

Build failed:

@Saviq Saviq merged commit 64b8673 into canonical:main Sep 1, 2021
@Saviq Saviq added this to the v1.8.0 milestone Oct 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants