Skip to main content

Posts

Showing posts with the label WSL

Unable to Edit Files in WSL Ubuntu – Permission Denied Fix

Issue Overview While working on a Python project in WSL (Windows Subsystem for Linux) with Ubuntu, I faced an issue where I couldn't save changes to a file ( app.py ) using Notepad++ or even IDLE. Subsystem path: \\wsl.localhost\Ubuntu\home\atif\tts-app  Error in Notepad++ When trying to save, the following message appeared: Save failed Please check whether the network where the file is located is connected. Error in IDLE In IDLE, the error was clearer: Permission denied This suggested that it might be a file ownership or permission issue . Investigation and Debugging To debug the issue, I opened the WSL terminal and navigated to the project folder: cd ~/tts-app ls -l Here’s the output: total 48 drwxr-xr-x 2 atif atif  4096 Jul  9 16:06 __pycache__ -rw-r--r-- 1 root root  4210 Jul  9 16:04 app.py -rw-r--r-- 1 atif atif  4210 Jul  9 16:04 app.py.bak drwxr-xr-x 2 root root  4096 Jul  9 16:03 backupCode drwxr-xr-x 2 atif atif 12288 Jul 10 ...

Windows Terminal Preview 1.2 Release July 22nd, 2020

Windows Terminal Preview  has new features for version 1.2 which will appear in Windows Terminal in August. You can download Windows Terminal Preview and Windows Terminal from the  Microsoft Store  or from the  GitHub releases page . Let’s dive into what’s new! Focus mode There is a new feature called focus mode that hides the tabs and title bar. This mode will only display the terminal content. To enable focus mode, you can add a key binding for  toggleFocusMode  in your settings.json file. This command is not bound by default. { "command" : "toggleFocusMode" , "keys" : "shift+f11" } Always on top mode In addition to focus mode, you can enable Windows Terminal Preview to always be the topmost window. This can be done with the  alwaysOnTop  global setting as well as a key binding using the  toggleAlwaysOnTop  command. These are not bound by default. // Global setting "alwaysOnTop" : true // Key binding { "co...