MicrosoftDocs / WSL

Source code behind the Windows Subsystem for Linux documentation.
https://docs.microsoft.com/windows/wsl
Other
1.89k stars 556 forks source link

Bash Command Error #1780

Closed Xie-Gustav closed 1 year ago

Xie-Gustav commented 1 year ago

Documentation Issue

Bash command for "Install Gnome Text Editor" as following doesn't work.

sudo apt install gnome-text-editor -y

Link to documentation page

https://learn.microsoft.com/en-us/windows/wsl/tutorials/gui-apps#install-gnome-text-editor

Suggested Improvements

Bash command for "Install Gnome Text Editor" should be as following.

sudo apt install gedit -y

crramirez commented 1 year ago

But the package gnome-text-editor does exists and is different from Gedit. If you issue sudo apt info gnome-text-editor it will say in the description:

Description: simple text editor for GNOME
 GNOME Text Editor is a simple editor for GNOME focused on being a good
 general purpose default editor.
 .
 It works hard to keep track of changes and state even if you quit the
 application. You can come back to your work even if you've never saved
 it to a file.
 .
 It is simpler than gedit.

Which distro and version are you using? maybe Ubuntu 20.04?

https://packages.ubuntu.com/search?keywords=gnome-text-editor

Xie-Gustav commented 1 year ago

Hi,

I’m using Ubuntu 20.04 LTS now. Following CLI output is for your reference also.

~$ lsb_release -dc Description: Ubuntu 20.04.6 LTS Codename: focal

~$ apt list | grep gnome-text WARNING: apt does not have a stable CLI interface. Use with caution in scripts. plymouth-theme-ubuntu-gnome-text/focal 20.04.1 all

Seems gnome-text-editor becomes the default text editor after 22.04 LTS. Let me try to do a release upgrade first. Thanks for the prompt reply!

Kind regard,

Gustav Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows

From: Carlos Rafael @.> Sent: Friday, 30 June 2023 7:02 pm To: @.> Cc: @.>; @.> Subject: Re: [MicrosoftDocs/WSL] Bash Command Error (Issue #1780)

But the package gnome-text-editor does exists and is different from Gedit. If you issue sudo apt info gnome-text-editor it will say in the description:

Description: simple text editor for GNOME

GNOME Text Editor is a simple editor for GNOME focused on being a good

general purpose default editor.

.

It works hard to keep track of changes and state even if you quit the

application. You can come back to your work even if you've never saved

it to a file.

.

It is simpler than gedit.

It is simpler than gedit.

Which distro and version are you using?

— Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/WSL/issues/1780#issuecomment-1614494013, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMCCVWKRADUNETZ7YBV6P63XN2W3HANCNFSM6AAAAAAZZNKXHI. You are receiving this because you authored the thread.Message ID: @.***>

mattwojo commented 1 year ago

Thanks for pointing this out @Xie-Gustav. @crramirez is correct -- Gnome Text Editor has replaced gedit as the default in 22.04. I added a note with a link and instructions for installing gedit if you're running an older version of Ubuntu. > https://github.com/MicrosoftDocs/WSL/pull/1779/files Thanks again.

Xie-Gustav commented 1 year ago

Thanks Matt for the confirmation and update work!!

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows

From: Matt @.> Sent: Tuesday, July 18, 2023 8:11 AM To: @.> Cc: @.>; @.> Subject: Re: [MicrosoftDocs/WSL] Bash Command Error (Issue #1780)

Thanks for pointing this out @Xie-Gustavhttps://github.com/Xie-Gustav. @crramirezhttps://github.com/crramirez is correct -- Gnome Text Editor has replaced gedit as the default in 22.04. I added a note with a link and instructions for installing gedit if you're running an older version of Ubuntu. > https://github.com/MicrosoftDocs/WSL/pull/1779/files Thanks again.

— Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/WSL/issues/1780#issuecomment-1639062751, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMCCVWJGHXP7SLNU5L6B7BDXQXIA7ANCNFSM6AAAAAAZZNKXHI. You are receiving this because you were mentioned.Message ID: @.***>