Topic: [RESOLVED] Help me with minimal session and mounting partitions
I've read everything I can find and I still don't quite understand permissions for mounting other partitions in a minimal environment without adding fstab entries. Here I'm using cwm as a WM on wheezy with Thunar as a file manager and gdm3 as a DM, but I get the same behavior on squeeze with gdm, or using another minimal WM like evilwm.
Example...
This is what I want, which I believe is the default #! behavior for both Openbox/Xfce (it's definitely the behavior in a full Xfce environment)... I open Thunar, it sees my other partitions, I click a partition, it asks me for a root password which I enter and then the partition mounts. None of the 3 other partitions (Windows and 2 Linux) are listed in fstab.
I tried to get this behavior without a display manager by using this line at the end of .xinitrc...
exec ck-launch-session dbus-launch cwm... but although Thunar showed my other partitions (I think, I've run the session changing one variable so many times I'm losing track), clicking on one would just give a "Permission Required" (or similar) error. Also, if I use the ck-launch-session dbus-launch commands, I get new dbus-daemons appearing without the old ones closing every time I logout/in.
I installed gdm3 using --no-install-recommends and then did the same with metacity to workaround the stupid bug in gdm3 where the cursor shows the spinning hourglass no matter what. Then I got what I wanted by using an .xprofile file like so...
#!/bin/sh
sh ~/.fehbg
numlockx &
xcompmgr -c &
/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &This is acceptable, but is it right? Why do I have to use gdm3? Why do I have to manually start polkit? I've seen dbus-daemon appear twice in lxtask before, but dbus-launch?
I have 2 unrealtedrelated questions which I'll add here... In the Arch Wiki and other places I've come across, the command for Feh to reset the background image is sh ~/.fehbg & , but if I add the & my wallpaper won't appear until I open a terminal or do some other action.
Also, everything I come across says to make .xinitrc/.xsession/.xprofile executable, and to use exec before the window manager line (exec cwm instead of just cwm), but it doesn't seem to matter if I do either, the behavior is the same, as in the session starts no problem.
Confused as usual!
Last edited by hhh (2011-11-15 20:21:03)