Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 662  / 2 Years ago, mon, march 7, 2022, 4:17:03

MicroUSB cables are extremely finnicky when it comes to having all connectors having contact inside the microUSB female port on the phone. Every time my phone moves even slightly when developing Android apps, my phone disconnects then reconnects, opening up a new gnome window or two. Believe it or not, this is not an issue with the phone, as it happens with multiple phones. It also happens with multiple microUSB cords. The hardware's disconnect/reconnect is not an Ubuntu issue, but the fact that there is an annoying pop-up of the disk contents every time it happens is an Ubuntu issue, especially since unlike a USB drive, I don't need to ever use a GUI for an android phone connection. I only need it to use with command line software like adb or third-party guis like android-studio



I still want my device to mount automatically, I just don't want gnome to issue a pop-up with its contents. Is there any way I can prevent myself from having to close 100 gnome windows after an hour of Android development?



The window is the usual file explorer, like what comes up when you run gnome-open ./


More From » gnome

 Answers
5

A gsettings desktop schema controls whether to automatically open a folder for automounted media.



Citing directly from the source code:




If set to true, then Nautilus will automatically open a folder when media is automounted. This only applies to media where no known x-content/* type was detected; for media where a known x-content type is detected, the user configurable action will be taken instead.




This gsetting can be modified with the following command:



gsettings set org.gnome.desktop.media-handling automount-open false


This setting does not modify the automount behaviour. The automount is controlled by the automount option).



(the information for this answer was pulled from the Gnome source code)


[#4391] Tuesday, March 8, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ainsbeave

Total Points: 280
Total Questions: 98
Total Answers: 105

Location: Faroe Islands
Member since Sat, Aug 20, 2022
2 Years ago
;