[BUG] Doesn't detect currently running Onedrive profile on start
Describe the bug
When I start up the appimage, it acts like onedrive hasn't been initialized and is running. It detects onedrive v2.5.2 just fine but then demands I add a OneDrive profile even one already exists and is in use. When I pick 'import existing OneDrive profile/config', it looks for a 'config' file, though one isn't used by onedrive in the ~/.config/onedrive folder.
Expected behavior
When I start up the appimage, I expect it to notice that onedrive is already running with an existing profile and skip the step to add another one, or at least have it look for the actual files that onedrive uses in the location it uses them.
System Info
- Linux distribution: Pop! OS 22.04 LTS
- Desktop environment/Compositor/Python version: no idea
- Version of OneDrive client: v2.5.2-1+np1+1.1
OneDriveGUI info How did you install OneDriveGUI?: AppImage What is the name of the AppImage file (if applicable)? : OneDriveGUI-1.1.1-x86_64.AppImage
Please note that you can't run the onedrive client in the background whilst also trying to run the GUI with the same profile.
Onedrive GUI will start and manage its own onedrive client processes in the background.
If you wish to use the GUI, stop all your onedrive client instances first. When the GUI starts you will need to manually select your onedrive config during the initial setup. You can then start the sync from the GUI.
It would be great if at least we could import the default profile more easily.
Perhaps consider adding a checkbox in the setup wizard, where users can choose to "Use the default profile"? Or allow picking a directory instead of a file when importing a profile?
Like @DeadlyDad said above, if you've previously ran the onedrive command and authenticated your account, it will have created a default profile at '~/.config/onedrive', but this profile does NOT have a 'config' file. Since one OneDriveGUI looks for a config file (not a folder), you can't import the default profile unless you manually create an empty 'config' file yourself. Perfectly doable, but a bit awkward.
For my use case, sometimes I want to sync through the terminal and other times I want to use the GUI (taking care to not have them both running at the same time). It would be nice if the initial setup was a little smoother.
Thanks!
Hi there, big thankyou for the onedrive client. I've just installed onedrive v2.5.6-1+np1+1.1 and got it to sync ok after upgrading from the older version that Ubuntu ships.
So as a total novice wanting to use the client and gui I have installed the client and this works fine.
I am running Ubuntu 24.04.3 LTS
Now I would like to install and run the gui. I am totally floored by the requirement for me to locate a config file that does not exisit !
How do I make it ?
Since the client runs fine without a configu file why does the gui require me to locate it ?
this is terribly confusing.
Could someone who knows add something to the gui install instructions to explain how to proceed.
============================================================= output from onedrive --display-config
_:/etc$ onedrive --display-config
WARNING: Your cURL/libcurl version (8.5.0) has known HTTP/2 bugs that impact the use of this client.
Please report this to your distribution, requesting an update to a newer cURL version, or consider upgrading it yourself for optimal stability.
Downgrading all client operations to use HTTP/1.1 to ensure maximum operational stability.
Please read https://github.com/abraunegg/onedrive/blob/master/docs/usage.md#compatibility-with-curl for more information.
Application version = onedrive v2.5.6-1+np1+1.1
Compiled with = LDC 2106
Curl version = libcurl/8.5.0 OpenSSL/3.0.13 zlib/1.3 brotli/1.1.0 zstd/1.5.5 libidn2/2.3.7 libpsl/0.21.2 (+libidn2/2.3.7) libssh/0.10.6/openssl/zlib nghttp2/1.59.0 librtmp/2.3 OpenLDAP/2.6.7
User Application Config path = /home/chrisstevens/.config/onedrive
System Application Config path = /etc/onedrive
Applicable Application 'config' location = /home/chrisstevens/.config/onedrive/config
Configuration file found in config location = false - using application defaults
Applicable 'sync_list' location = /home/chrisstevens/.config/onedrive/sync_list
Applicable 'items.sqlite3' location = /home/chrisstevens/.config/onedrive/items.sqlite3
Config option 'drive_id' =
Config option 'sync_dir' = ~/OneDrive
Config option 'use_intune_sso' = false
Config option 'use_device_auth' = false
Config option 'enable_logging' = false
Config option 'log_dir' = /var/log/onedrive
Config option 'disable_notifications' = false
Config option 'skip_dir' =
Config option 'skip_dir_strict_match' = false
Config option 'skip_file' = ~*|.~*|*.tmp|*.swp|*.partial
Config option 'skip_dotfiles' = false
Config option 'skip_symlinks' = false
Config option 'monitor_interval' = 300
Config option 'monitor_log_frequency' = 12
Config option 'monitor_fullscan_frequency' = 12
Config option 'read_only_auth_scope' = false_
@pegcjs If I understand you correctly, you want to load the default OneDrive profile in OneDriveGUI, yes?
Navigate to the default OneDrive folder ~/.config/onedrive(*) and manually create an empty file called config. No extension needed or anything. Then, in OneDriveGUI, when importing a profile, pick the empty config file you just created.
(*) Looking at the console output you posted, the full path for your user should be /home/chrisstevens/.config/onedrive
But like @bpozdena said, be careful to NOT run both OneDrive and OneDriveGUI with the same profile at the same time.
The upcoming OneDriveGUI v1.3.0 will have improved error messaging to clearly indicate why sync failed.