MEGAsync don't start

I wrote earlier that I am using Plasma.

About installing GNOME Tweaks on Plasma - maybe not the best idea, but atleast it gave me some clue about fixing the problem.

Right, I missed that earlier.

I would agree :wink:

You lost me there.
Could you, if you feel like to, elaborate on how installing gnome-tweaks gave you some clues about solving the issues with megasync ?

1 Like

GT startup tab shows which apps are running right now, equvalent in KDE system settings don’t
It’s looking similar to this

So i know the mega launches but icon in system tray is missing.

Check the logs. Everything about autostarting applications is logged in the journal.
Example:

## Find autostart in user session log, should show autostart generator entries
journalctl -b --user -g autostart
## List all service units, including failed
systemctl list-units --all --user --type service
1 Like

Is yours an Ubuntu system?

No, just random img I found to show you how it looks.

So I figured some things:

  1. It’s not related to Mega only, Discord works the same(there’s a process, but without icon on tray, I am pretty sure most of the apps that have its own system tray icon will do similar), but i.e Chromium works good(starts after login)

  2. Mega is working good, I created a sample file in the Documents folder which is autosyncing and found the same file in the webapp

  3. journalctl -b --user -g autostart output:

lip 22 20:33:03 EndeavourOS plasma_session[702]: org.kde.plasma.session: Starting autostart service  "/etc/xdg/autostart/xembedsniproxy.desktop" ("/usr/bin/xembedsniproxy")
lip 22 20:33:03 EndeavourOS plasma_session[702]: org.kde.plasma.session: Starting autostart service  "/etc/xdg/autostart/powerdevil.desktop" ("/usr/lib/org_kde_powerdevil")
lip 22 20:33:03 EndeavourOS plasma_session[702]: org.kde.plasma.session: Starting autostart service  "/etc/xdg/autostart/polkit-kde-authentication-agent-1.desktop" ("/usr/lib/polkit-kde-authentication-agent-1")
lip 22 20:33:03 EndeavourOS plasma_session[702]: org.kde.plasma.session: Starting autostart service  "/etc/xdg/autostart/baloo_file.desktop" ("/usr/lib/baloo_file")
lip 22 20:33:03 EndeavourOS plasma_session[702]: org.kde.plasma.session: Starting autostart service  "/etc/xdg/autostart/org.kde.plasmashell.desktop" ("/usr/bin/plasmashell")
lip 22 20:33:03 EndeavourOS plasma_session[702]: org.kde.plasma.session: Starting autostart service  "/etc/xdg/autostart/kaccess.desktop" ("/usr/bin/kaccess")
lip 22 20:33:03 EndeavourOS plasma_session[702]: org.kde.plasma.session: Starting autostart service  "/etc/xdg/autostart/pam_kwallet_init.desktop" ("/usr/lib/pam_kwallet_init")
lip 22 20:33:03 EndeavourOS plasma_session[702]: org.kde.plasma.session: Starting autostart service  "/etc/xdg/autostart/org.kde.kdeconnect.daemon.desktop" ("/usr/lib/kdeconnectd")
lip 22 20:33:04 EndeavourOS plasma_session[702]: org.kde.plasma.session: Starting autostart service  "/etc/xdg/autostart/gmenudbusmenuproxy.desktop" ("/usr/bin/gmenudbusmenuproxy")
lip 22 20:33:04 EndeavourOS plasma_session[702]: org.kde.plasma.session: Starting autostart service  "/home/patryk/.config/autostart/megasync.desktop" ("/usr/bin/megasync")
lip 22 20:33:04 EndeavourOS plasma_session[702]: org.kde.plasma.session: Starting autostart service  "/etc/xdg/autostart/geoclue-demo-agent.desktop" ("/usr/lib/geoclue-2.0/demos/agent")
lip 22 20:33:04 EndeavourOS plasma_session[702]: org.kde.plasma.session: Starting autostart service  "/home/patryk/.config/autostart/discord.desktop" ("/usr/bin/discord")
lip 22 20:33:04 EndeavourOS plasma_session[702]: org.kde.plasma.session: Starting autostart service  "/etc/xdg/autostart/xapp-sn-watcher.desktop" ("/usr/lib/xapps/sn-watcher/xapp-sn-watcher")
lip 22 20:33:04 EndeavourOS plasma_session[702]: org.kde.plasma.session: Starting autostart service  "/etc/xdg/autostart/eos-update-notifier.desktop" ("/usr/bin/eos-update-notifier", "-init")
lip 22 20:33:04 EndeavourOS plasma_session[702]: org.kde.plasma.session: Starting autostart service  "/etc/xdg/autostart/wallpaper-once.desktop" ("/usr/bin/sh", "/usr/share/endeavouros/scripts/wallpaper-once")
lip 22 20:33:04 EndeavourOS plasma_session[702]: org.kde.plasma.session: Starting autostart service  "/etc/xdg/autostart/welcome.desktop" ("/usr/bin/sh", "/usr/share/endeavouros/scripts/welcome", "--startdelay=3")
lip 22 20:33:09 EndeavourOS systemd-xdg-autostart-generator[1663]: Configuration file /home/patryk/.config/autostart/firewall-applet.desktop is marked executable. Please remove executable permission bits. Proceeding anyway.
lip 22 20:33:09 EndeavourOS systemd-xdg-autostart-generator[1736]: Configuration file /home/patryk/.config/autostart/firewall-applet.desktop is marked executable. Please remove executable permission bits. Proceeding anyway.
lip 22 20:33:11 EndeavourOS systemd[1651]: app-nm\x2dapplet@autostart.service: Skipped due to 'exec-condition'.
lip 22 20:33:11 EndeavourOS systemd[1651]: app-user\x2ddirs\x2dupdate\x2dgtk@autostart.service: Skipped due to 'exec-condition'.
lip 22 20:33:11 EndeavourOS systemd[1651]: app-xfce4\x2dnotifyd@autostart.service: Skipped due to 'exec-condition'.
lip 22 20:33:11 EndeavourOS systemd[1651]: app-xfce4\x2dpower\x2dmanager@autostart.service: Skipped due to 'exec-condition'.
lip 22 20:33:11 EndeavourOS systemd[1651]: app-xfce4\x2dscreensaver@autostart.service: Skipped due to 'exec-condition'.
lip 22 20:33:11 EndeavourOS systemd[1651]: app-xfce\x2dpolkit\x2dgnome\x2dauthentication\x2dagent\x2d1@autostart.service: Skipped due to 'exec-condition'.
lip 22 20:33:11 EndeavourOS systemd[1651]: app-xfsettingsd@autostart.service: Skipped due to 'exec-condition'.
lip 22 20:33:11 EndeavourOS systemd[1651]: app-klipper@autostart.service: Skipped due to 'exec-condition'.
lip 22 20:33:11 EndeavourOS systemd[1651]: Reached target Startup of XDG autostart applications.
lip 22 20:56:58 EndeavourOS systemsettings[3835]: file:///usr/share/kpackage/kcms/kcm_autostart/contents/ui/main.qml:22:13: QML InlineMessage: Cannot anchor to an item that isn't a parent or sibling.
lip 22 20:57:01 EndeavourOS systemsettings[3835]: kf.kio.core: Url QUrl("file:///home/patryk/.config/autostart/discord.desktop") already represents a local file, cancelling job.
  1. systemctl list-units --all --user --type service output:
    tl:dr mega and discord listed as loaded inactive dead
  UNIT                                                                          LOAD      ACTIVE   SUB     DESCRIPTION
  app-discord@autostart.service                                                 loaded    inactive dead    Discord
  app-eos\x2dupdate\x2dnotifier@autostart.service                               loaded    inactive dead    EndeavourOS Update Notifier
  app-geoclue\x2ddemo\x2dagent@autostart.service                                loaded    active   running Geoclue Demo agent
  app-kaccess@autostart.service                                                 loaded    active   running Accessibility
  app-klipper@autostart.service                                                 loaded    inactive dead    Klipper
  app-megasync@autostart.service                                                loaded    inactive dead    MEGAsync
  app-nm\x2dapplet@autostart.service                                            loaded    inactive dead    Network
  app-org.kde.kdeconnect.daemon@autostart.service                               loaded    active   running KDE Connect
  app-user\x2ddirs\x2dupdate\x2dgtk@autostart.service                           loaded    inactive dead    User folders update
  app-wallpaper\x2donce@autostart.service                                       loaded    inactive dead    wallpaper-once
  app-welcome@autostart.service                                                 loaded    inactive dead    Welcome
  app-xfce4\x2dnotifyd@autostart.service                                        loaded    inactive dead    Xfce Notification Daemon
  app-xfce4\x2dpower\x2dmanager@autostart.service                               loaded    inactive dead    Power Manager
  app-xfce4\x2dscreensaver@autostart.service                                    loaded    inactive dead    Screensaver
  app-xfce\x2dpolkit\x2dgnome\x2dauthentication\x2dagent\x2d1@autostart.service loaded    inactive dead    PolicyKit Authentication Agent
  app-xfsettingsd@autostart.service                                             loaded    inactive dead    Xfce Settings Daemon
  at-spi-dbus-bus.service                                                       loaded    active   running Accessibility services bus
  dbus.service                                                                  loaded    active   running D-Bus User Message Bus
  dconf.service                                                                 loaded    active   running User preferences database
  dirmngr.service                                                               loaded    inactive dead    GnuPG network certificate management daemon
  eos-update-notifier.service                                                   loaded    inactive dead    EOS update notifier service
  gcr-ssh-agent.service                                                         loaded    inactive dead    GCR ssh-agent wrapper
  gpg-agent.service                                                             loaded    inactive dead    GnuPG cryptographic agent and passphrase cache
  gvfs-afc-volume-monitor.service                                               loaded    active   running Virtual filesystem service - Apple File Conduit monitor
  gvfs-daemon.service                                                           loaded    active   running Virtual filesystem service
  gvfs-gphoto2-volume-monitor.service                                           loaded    active   running Virtual filesystem service - digital camera monitor
  gvfs-mtp-volume-monitor.service                                               loaded    active   running Virtual filesystem service - Media Transfer Protocol monitor
  gvfs-udisks2-volume-monitor.service                                           loaded    active   running Virtual filesystem service - disk device monitor
● kde-baloo.service                                                             loaded    failed   failed  Baloo File Indexer Daemon
  p11-kit-server.service                                                        loaded    inactive dead    p11-kit server
● pipewire-media-session.service                                                not-found inactive dead    pipewire-media-session.service
  pipewire-pulse.service                                                        loaded    active   running PipeWire PulseAudio
  pipewire.service                                                              loaded    active   running PipeWire Multimedia Service
  plasma-baloorunner.service                                                    loaded    active   running KRunner provider for baloo file indexer
● plasma-foreground-booster.service                                             not-found inactive dead    plasma-foreground-booster.service
  plasma-gmenudbusmenuproxy.service                                             loaded    active   running Proxies GTK DBus menus to a Plasma readable format
  plasma-kactivitymanagerd.service                                              loaded    active   running KActivityManager Activity manager Service
  plasma-kcminit-phase1.service                                                 loaded    inactive dead    KDE Configuration Module Initialization (Phase 1)
  plasma-kcminit.service                                                        loaded    inactive dead    KDE Config Module Initialization
  plasma-kded.service                                                           loaded    active   running KDE Daemon
  plasma-kglobalaccel.service                                                   loaded    active   running KDE Global Shortcuts Server
  plasma-kscreen.service                                                        loaded    active   running KScreen
  plasma-ksmserver.service                                                      loaded    active   running KDE Session Management Server
  plasma-ksplash-ready.service                                                  loaded    inactive dead    KSplash "ready" Stage
  plasma-kwallet-pam.service                                                    loaded    inactive dead    Unlock kwallet from pam credentials
  plasma-kwin_wayland.service                                                   loaded    inactive dead    KDE Window Manager
  plasma-kwin_x11.service                                                       loaded    active   running KDE Window Manager
  plasma-plasmashell.service                                                    loaded    active   running KDE Plasma Workspace
  plasma-polkit-agent.service                                                   loaded    active   running KDE PolicyKit Authentication Agent
  plasma-powerdevil.service                                                     loaded    active   running Powerdevil
  plasma-restoresession.service                                                 loaded    inactive dead    KDE Session Management Server
  plasma-xdg-desktop-portal-kde.service                                         loaded    active   running Xdg Desktop Portal For KDE
  plasma-xembedsniproxy.service                                                 loaded    active   running Handle legacy xembed system tray icons
● pulseaudio.service                                                            not-found inactive dead    pulseaudio.service
  wireplumber.service                                                           loaded    active   running Multimedia Service Session Manager
  xdg-desktop-portal.service                                                    loaded    active   running Portal service
  xdg-document-portal.service                                                   loaded    active   running flatpak document portal service
  xdg-permission-store.service                                                  loaded    active   running sandboxed app permission store
  xdg-user-dirs-update.service                                                  loaded    inactive dead    Update XDG user dir configuration

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
59 loaded units listed.
To show all installed unit files use 'systemctl list-unit-files'.

Also when I disable autostart for Mega and Discord I can launch them without problems.

I think I can’t do much about it - https://bugs.kde.org/show_bug.cgi?id=425315

How did you make megasync autostart? From megasync control panel, or from KDE?

If you used the checkbox in Megasync, you may try a possible workaround.
Uncheck autostart in Megasync.
Then use KDE System Settings - Autostart and add megasync .
Test.

Also

  • Keep a copy of the old .desktop file, to compare KDE auto-created settings.
  • IIRC KDE has added some options in Autostart utility. Try for a possible option, like adding a delay before starting.

Another possible workaround/solution is to add this in the autostart megasync.desktop file:

X-KDE-autostart-phase=1

Other values are 2 and 0 (if 1 fails) :wink: .

I used MegaSync control panel. Tried to add to autostart with KDE, but didn’t work(after reboot Mega was missing from the list)

The contents are equal, but in the different order.

Tried to add this(with all options, also commented the X-GNOME-Autostart-Delay=60), no luck

But I think I resolved the issue finally
https://bugs.kde.org/show_bug.cgi?id=425315 - posted this site earlier,
There’s a comment #46, saw it yesterday actually, but didn’t have time to test. So that worked(for now and i think it will stay that way :pray:). I am marking this reply as solution, but all credits goes to that guy.

Solved it for me by renaming ~/.config and reboot.
Then I’d need to move the config-directories to the new created ~/.config for the Applications I do use.

Removing plasma* files didn’t solve it, think at least the issue where somewhere with a kwin setting file, but couldn’t figure out exactly what it was.
~Samuel Suther

Thanks everyone for help

1 Like

If you have kept the saved .config/ folder, you may want to compare with meld (existing, filter out New) folders and possibly find the changed settings (or other).
It is a known issue with Plasma version upgrades, to bring in conflicts with old configuration in user/local ` files.

Ok, maybe i will check it and hope next Plasma update won’t break it again.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.