disable open file explorer erverytime i connect usb ubuntu 1

disable open file explorer erverytime i connect usb ubuntu

Turns out, it is. You will need dconf-editor tool, which can be installed by with sudo apt-get install dconf-tools. Run dconf-editor in your terminal. Browse to org -> gnome -> desktop - media-handling. Uncheck automount-open.

Here is what the above code is Doing:
1. The first line imports the os module, which contains functions for interacting with the operating system.
2. The second line assigns the string ‘C:\\Windows\\System32\\calc.exe’ to a variable named program.
3. The third line passes the program variable to the os.startfile() function, which opens the program at that location.

Similar Posts