# How to prevent Anydesk from freezing your browser when accessing /tmp

**URL:** <https://linux-tips.com/t/how-to-prevent-anydesk-from-freezing-your-browser-when-accessing-tmp/1127>\
**Category:** Uncategorized\
**Created:** [March 22, 2025, 9:38am UTC](https://linux-tips.com/t/how-to-prevent-anydesk-from-freezing-your-browser-when-accessing-tmp/1127 "2025-03-22T09:38:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DrSlump](https://linux-tips.com/user_avatar/linux-tips.com/drslump/32/61_2.png) [@DrSlump](https://linux-tips.com/u/DrSlump)\
**Post date:** [March 22, 2025, 9:38am UTC](https://linux-tips.com/t/how-to-prevent-anydesk-from-freezing-your-browser-when-accessing-tmp/1127/1 "2025-03-22T09:38:13Z")

</div>

If you have AnyDesk installed, it creates numerous special files in the `/tmp` directory with prefixes like `ad_mailbox` and `ad_connect_queue`.

While AnyDesk is running, attempting to use a file upload button in a web browser and selecting a file from the `/tmp` directory can cause the browser to freeze. This issue seems to be related to the file picker struggling to fetch the `/tmp` directory’s contents.

Unfortunately, AnyDesk does not provide an option to change the temporary directory via its GUI settings or by setting a common environment variable like `TMPDIR`.

However, you can modify the `/usr/bin/anydesk` binary to point `/tmp` to a different location. Since the binary contains only one occurrence of `/tmp`, and the replacement must have the same number of characters, you can create an alternative directory (e.g., `/any`) and update the binary accordingly. This simple modification can help avoid these persistent issues.

```auto
sudo mkdir /any
sudo service anydesk stop
sudo perl -pi -e 's#/tmp#/any#g' /usr/bin/anydesk
sudo service anydesk start

```
