SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2010-08-17 06:02:36

aliceinmadness
Member
Registered: 2010-08-17
Posts: 36

[facepalm] well, screwed this one up (nautilus, openbox issue)

Let me preface this by saying that I'm actually running Mint, not CrunchBang (going to make the switch soon, most like) but I go on these forums a lot when I need to figure something out.

So here's what happened -  long story short:

I noticed that if I ran nautilus in openbox it did a nasty hostile takeover bit, so I found on these forums a script to add to the autostart.sh file to prevent that from happening. I didn't actually have an autostart.sh file in ~/.config/openbox/autostart.sh, and did not want to create a new one since A. I'm a linux newbie and not entirely sure what an .sh extension is and B. I wasn't sure if it was just located somewhere else. I did in fact find one here:  /etc/xdg/openbox/autostart.sh, and that's the file I edited.

Well, that fixed the hostile takeover issue. Except for the fact that I tried to open a folder in root by right-clicking (I had intended to fool around with my conky file), which booted me from my user profile to the root user profile and killed the openbox right-click menu. So I rebooted and went back to GNOME and deleted the script that I had added.

Now, every time I open a file as root, either in GNOME or openbox, it takes me off of my user profile and onto the root profile, and in addition to that my right-click on the desktop has been totally disabled in GNOME. I went to the Ubuntu forums since there was a short thread in relation to my right-click problem and followed the various fixes that were mentioned there, all to no avail (including purging and then reinstalling nautilus).

Can anybody tell me what the devil is going on here? lol, I know I probably deserve 30 lashes in town square for this...

TIA!


Oops.

Offline

Be excellent to each other!

#2 2010-08-17 08:59:18

luc
#! Die Hard
From: Munich, Germany
Registered: 2010-03-21
Posts: 597

Re: [facepalm] well, screwed this one up (nautilus, openbox issue)

Hello alice,
nice to know you like this forums though you use mint. So welcome here.

file.sh
the file extension ".sh" indicates a script file. It is basically a text file with changed permissions so that it is executable. And when you executed it the text in it is read by an interpreter, witch will executed the commands you wrote down  in the file. one example of an interpreter is /bin/bash witch you probably use in the terminal. But check out wikipedia

~/.config/openbox/autostart.sh
if you want to know if end when the file will be executed you can create it, add the lines

#!/bin/bash
date >> ~/Desktop/testfile.txt
uptime >> ~/Desktop/testfile.txt

to the file and then make it executeable. ( run "chmod +x ~/.config/openbox/autostart.sh" in a terminal to do that)
this will if the file is ever executed produce a file on your desktop where it writes the date and uptime at execution time.

for the gnome and nautilus stuff, im sorry i cant help you, good luck with that.
Luc

Offline

#3 2010-08-20 18:31:19

aliceinmadness
Member
Registered: 2010-08-17
Posts: 36

Re: [facepalm] well, screwed this one up (nautilus, openbox issue)

Thanks for the little primer on .sh files, Luc smile

I just installed #!...lol, I didn't have the patience to try to get mint to work correctly again.


Oops.

Offline

#4 2010-08-25 14:10:30

luc
#! Die Hard
From: Munich, Germany
Registered: 2010-03-21
Posts: 597

Re: [facepalm] well, screwed this one up (nautilus, openbox issue)

aliceinmadness wrote:

just installed #!

NICE!

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo