Peppermint OS

Support => Advanced Topics => Topic started by: xanadu on May 02, 2014, 10:24:30 am

Title: Dropbox indicator/notification icon issues
Post by: xanadu on May 02, 2014, 10:24:30 am
Where can I find a log of the programs that are started via the Startup Applications program (gnome-session-properties) in Peppermint 3? I looked in some of the usual suspects in /var/log/ and can't seem to find what I'm looking for.

Basically, I am using a custom version of Dropbox without nautilus integration, and it boots fine from the command line, but when I added an entry to Startup Applications with the same command: ~/.dropbox-dist/dropboxd, Dropbox fails to start (no notification icon, no running process). I was hoping to look at a log file to figure out why.

Title: Re: Where are startup applications logged?
Post by: mac on May 02, 2014, 10:45:54 am
Why not use the Peppermint-native Dropbox?
menu > Internet > Dropbox

Autostart files are in ~/.config/autostart  ;)
Title: Re: Where are startup applications logged?
Post by: emegra on May 02, 2014, 10:46:33 am
I'm not 100% sure about PM3 but in PM 4 startup applications are stored at /home/<username>/.config/autostart, you could try there




Good luck



Graeme
Title: Re: Where are startup applications logged?
Post by: PCNetSpec on May 02, 2014, 12:02:16 pm
Autostarting dropbox can be a bit of a pain .. sometimes it loads before pcmanfm so fails

try starting it from the autostart folder mac and emegra mentioned .. also try adding a bit of a delay.

run:
Code: [Select]
mkdir ~/.config/autostartthen
Code: [Select]
gedit ~/.config/autostart/dropbox-custom-autostart.desktopand make it read:
Code: [Select]
[Desktop Entry]
Type=Application
Version=1.0
Name=Dropbox Custom Autostart
Comment=File transfer and sharing
Exec=bash -c "sleep 60 ; /home/<username>/.dropbox-dist/dropboxd"
Icon=
Terminal=false
Encoding=UTF-8
Categories=Application;Network;
SAVE the file, and log off/on to test .. be aware dropbox won't start for 30 seconds after the desktop.

Also, be SURE to replace <username> in the
Exec=bash -c "sleep 60 ; /home/<username>/.dropbox-dist/dropboxd"
line in the above file with your ACTUAL username
Title: Re: Where are startup applications logged?
Post by: xanadu on May 02, 2014, 01:42:30 pm
try starting it from the autostart folder mac and emegra mentioned .. also try adding a bit of a delay.

I had been starting it from the autostart folder, gnome-session-properties (aka the Startup Applications program) is just a gui for that.

Anyway, adding delay did the trick! Thanks. I'll tweak it a bit to see just how much delay it needs. 30 seconds seems to work, though.

For future reference, is there a log file for the files in autostart to see why something fails to start/crashes?
Title: Re: Where are startup applications logged?
Post by: PCNetSpec on May 02, 2014, 01:46:18 pm
Not over and above the normal log files no .. or maybe that should say "not that I'm aware of" ;)
Title: Re: Where are startup applications logged?
Post by: xanadu on May 02, 2014, 02:42:22 pm
Why not use the Peppermint-native Dropbox?
menu > Internet > Dropbox

I didn't realize that Peppermint 3 has a native Dropbox client. Running an apt-get just downloads dropbox-nautilus or whatever it's called. Anyway, adding some delay to the initialization of dropbox seems to fix the problem.
Title: Re: Where are startup applications logged?
Post by: PCNetSpec on May 02, 2014, 03:30:10 pm
The peppermint-dropbox package should be available in your repos.

or this PPA (for Peppermint 3):
https://launchpad.net/~kendalltweaver/+archive/peppermint?field.series_filter=precise

Direct download link:
https://launchpad.net/~kendalltweaver/+archive/peppermint/+files/peppermint-dropbox_3.0.0_all.deb



FYI...

It appears to be a modified dropbox-nautilus package that puts the dropbox.py file in a custom location, then adds 2 executable scripts to the system $PATH at /usr/bin
one to start the python script when "dropbox" is called
and one called "nautilus" that forwards calls for nautilus to pcmanfm instead
Title: Re: Where are startup applications logged?
Post by: xanadu on May 02, 2014, 08:24:15 pm
Ah, thank you for this. I'd rather install it from PPA so I don't have to update manually.
Title: Re: Where are startup applications logged?
Post by: kendall on May 05, 2014, 07:50:10 am
Ah, thank you for this. I'd rather install it from PPA so I don't have to update manually.

There won't be any future updates to that package so it doesn't matter if you install it manually or from the repo. Also, that PPA should be enabled by default in Peppermint Three and peppermint-dropbox should have been installed by default.
Title: Re: Where are startup applications logged? <SOLVED>
Post by: xanadu on May 28, 2014, 12:19:22 am
The notification area/indicator icon for dropbox has disappeared. I originally thought this was because either a) I was using a custom (nautilus-free) build of dropbox or b) dropbox wasn't being autostarted as it should be. I followed the suggestions to install peppermint-dropbox again, and that seemed to solve my problem for a bit. Now, the icon is gone again. The service is running though (and sadly, it's consuming 100% of my CPU). I am running peppermint-dropbox, whatever the latest version is in the repos. It syncs fine if I move stuff in and out of the folders, but without an indicator icon, I can't see things such as file transfer rate or the remaining number of files to be synced.

I did a purge peppermint-dropbox, removed my .dropbox and Dropbox folders, just in case, reinstalled peppermint-dropbox, and then rebooted. It seems to be syncing fine as the folder is being repopulated, but the icon is still gone. There's also the weird problem that if I try to execute dropbox using any commandline switches, (like if I want to see the version number or help page), it just returns: "To link this computer to a dropbox account, visit the following url:" Obviously, it is linked to this computer, since it is syncing to it as we speak.

Does anyone have any suggestions (aside from "just wait for Peppermint 5 to come out")? A number of places elsewhere suggested installing libappindicator1 to solve the no-icon issue (for Ubuntu 13.04, though), but that is already installed on here, so that's not helpful. It's bad enough that Google doesn't support Drive for Linux, now this! Maybe it's time to look into some of those alternative cloud storage services (but I'd be sad to let my 10gb of free space on Dropbox go to waste).
Title: Re: Dropbox indicator/notification icon issues
Post by: kendall on May 28, 2014, 10:02:30 am
You can use google-drive-ocamlfuse to mount a Google Drive. There should be a PPA for it.

On the topic of Dropbox, you can still use their web interface as a band-aid until Peppermint Five comes out.