Posted: Mon 18 May 2015, 01:21 Post subject:
Script to Replace Nautilus for Dropbox
Fatdog (and likely other slackware based versions of pupplinux) does not come with nautilus
The consequence is that when you right click on the dropbox icon (located on the taskbar after typing "dropbox start -i") you get the error "no nautilus" and the folder does not open. I found on another site that the trick is to replace nautilus with a bash scrip.
The commented out echo was because I needed to see what the input arguments were which dropbox was passing to this script.
The arguments were:
rox does not recognize the "--no-desktop" option. The proper way to do this script would be to process each argument one by one and then either translate or remove each option as needed. I may do this later when I get time. The risk of my hack is that some other program may think that nautilus exists and act in appropriately as a consequence.
Joined: 18 May 2008 Posts: 4844 Location: Blue Springs, MO
Posted: Mon 18 May 2015, 08:22 Post subject:
Here is a start... currently strips all options, but you can just add different case statements as needed for supported options
for x in $@; do
[ $INITIALIZED ] || INITIALIZED=1 && set --
case "$x" in
-*);; #remove all options
*)set $@ $x
If there is a rox option that is similar to the nautilus option, the case statement would look like:
--some-nautilus-option) set $@ --equivalent-rox-option;; _________________ Check out my github repositories. I may eventually get around to updating my blogspot.
I never tried your script as you wrote it because I don't understand what "set --" does. I don't know the function of the "INITIALIZED" variable, and I don't understand how you can assign to the same variable that you are removing stuff from in a loop. It's probably some things that I don't know about linux but no-one always writes 100% bug free code.
Anyway, I tested my script and it works. Maybe you script would also work. I don't know. Thanks for the help though because I used your script as the starting point
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum