Apps and Installations
Have a question about a Dropbox app or installation? Reach out to the Dropbox Community and get solutions, help, and advice from members.
Similarly to the issue described here, on a fresh Ubuntu 20.04 with the dropbox client recently installed, by the time I press the button on the app to say "Open the Dropbox site", the browser opens a new window with a local file in the url starting with tmp which can't resolve in a proper site.
The issue happens in both Firefox and Chromium.
How can this be solved?
Uninstalling the snap version (sudo snap remove firefox) and installing the traditional version via `sudo apt-get install firefox` resolved the problem.
The xdg-mime query default text/html now returns the expected firefox.desktop which you @Здравко initially flagged as suspicious.
What a pain 🙂
Megan
Community Moderator @ Dropbox
dropbox.com/support
Did this post help you? If so, give it a Like below to let us know.
Need help with something else? Ask me a question!
Find Tips & Tricks Discover more ways to use Dropbox here!
Interested in Community Groups? Click here to join!
I'm not on that computer now, but it is a URL not found. Since the URL requested is starting with tmp:// or file:///tmp/ and the browser doesn't know hot to resolve that URL, the error shows up.
I did try to change the browser into Chromium (default is Firefox) without luck. Don't have temp files restrictions as far as I can tell, but it mostly depends on where this tmp file is being created.
I guess that somewhere in the installation process the mime-type if any, or the path resolution has not been created?
No, as I said, I'm just pressing the globe button from the dropbox icon tray. But, even if I right click on the contextual-menu View on dropbox, the result is the same, no matter which file I try to open.
See below a screenshot from Firefox
and one using Chromium which I temporarily reverted as default browser (btw, until quitting, the app continues to read the previous browser as the default).
Tmp folder settings are 1777, so I don't see why DropBox should not be able to create the temporary file (as per the previous answer).
Perhaps this is the problem? Since my logged in user is the only one able to remove file I create, it might be that DropBox is trying to create files with my logged in account, but remove with its own process name?
Megan
Community Moderator @ Dropbox
dropbox.com/support
Did this post help you? If so, give it a Like below to let us know.
Need help with something else? Ask me a question!
Find Tips & Tricks Discover more ways to use Dropbox here!
Interested in Community Groups? Click here to join!
As I said, Firefox is already my default browser
All the commands given are just to check what the default browser is, except one that seems to setup a smart url. The path in that case will never match with my system, so some clarity around how to create them might be helpful.
Jay
Community Moderator @ Dropbox
dropbox.com/support
Did this post help you? If so, give it a Like below to let us know.
Need help with something else? Ask me a question!
Find Tips & Tricks Discover more ways to use Dropbox here!
Interested in Community Groups? Click here to join!
@Jayassuming this is the case, how can this be fixed? You guys support Linux Ubuntu, so I would expect some sort of log to be inspected?
Can you tell me where this log is, or what else can be done?
As far as I can tell, the problem is the Dropbox client that is not writing the file at all. Inspecting the /tmp folder the browser attempts to load the file from, reveal no files at all.
@andreamoro wrote:... You guys support Linux Ubuntu, so I would expect some sort of log to be inspected?
...
Hi @andreamoro,
Linux is NOT first class citizen on Dropbox (and not only), despite growing usage in many fields. Big companies are "conservative" and takes some time adaptation to new realities, so "some sort of log to be inspected" sounding very abstract to the PR staff moderating the forum. In other words better don't rely.
@andreamoro wrote:... Inspecting the /tmp folder the browser attempts to load the file from, reveal no files at all.
🤔Wow... "no files at all" is sounding very strange! 🧐 Are you sure?! The "tmp" folder is used by many applications (user programs and system services) to keep (as the name suggest) temporary files. Inability to access to /tmp would carries a lot of headaches, no only Dropbox application related.
Let's find out what's the current state. Execute following in terminal:
ls -ld /tmp ls -al /tmp | wc -l
What's the both commands output? Can you post the result?
Take in mind that the files, you are referring above, are kept by Dropbox application for a minute, at most. If you have checked after that they have gone already. One more thing, you may have ignored, is actual file name - only the first part of the URL, up to the hash sign. The rest is an argument passed to the browser (everything after the hash and the hash sign itself). So be careful what you are looking for to be able find it. 😉
Also take in mind that default web browser, protocol handler, and file handler are completely different things.
They can keep the same or different applications. The screenshot you have posted above, showing your default web browser, has nothing to do with html file handler. Don't mess them! You can find (and possibly change) the file handler on Properties dialog in Nautilus (Open With tab) or using following command:
xdg-mime query default text/html
Hope this gives direction and adds some clarity.
@Здравкоthanks for coming back to me. When I said no files at all in the tmp folder, I was in fact not clear enough. I meant no Dropbox files.
I will be looking into the tmp folder again later, perhaps going with a
watch ls
to capture changes?
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!