You are not logged in.
Hey guys,
I'm having a bit of trouble getting GDM and awesome to play nice. What I want to do is set up some applications to start automatically with awesome.
I have in /usr/share/xsessions a file called awesome.desktop and inside is this:
[Desktop Entry]
Encoding=UTF-8
Name=Awesome
Comment=Awesome
TryExec=/usr/local/bin/awesome
Exec=/usr/local/bin/awesome
Type=Application
What I want instead is for it to be something like
Exec=$HOME/.config/awesome/xinitrc
and inside xinitrc will be
gnome-volume-control-applet &
dropbox start &
exec awesome
But when I run this have this, it either resets back to the login screen, logs me into GNOME or just doesn't show the "awesome" entry at all in the session menu.
I assume is has something to do with the $HOME variable but how can I get the home directory of the user logging in otherwise?
Thanks.
Last edited by MJBoa (2010-02-15 03:20:23)
Offline
Have you tried just doing whatever you want from rc.lua?
I just dumped this at the end of mine:
function run_once(prg)
if not prg then
do return nil end
end
awful.util.spawn_with_shell("pgrep -u $USER -x " .. prg .. " || (" .. prg .. ")")
end
run_once("tilda")
Also, look up slim in the wiki. I know you want GDM, but that article has a really nice xinitrc that might be helpful in some way to you.
EDIT: my bad, didn't see the solved tag. sorry.
Last edited by gaunt (2010-02-15 03:28:51)
Offline
Well I just linked to a file in /etc/ to start all my programs, so no per-user configuration. Not really the best solution but I stopped caring.
Unrelated, how well is tilda working for you? Are you using transparency?
Offline
Very nicely actually.
The only problem is I accidentally type exit to make it go away instead of it's keybinding. Transparency works nicely if you set it reasonably low (mine is about 40/50% iirc) and use wallpapers that are fairly monochromatic in that portion of the screen. One problem is that if you open tilda in certain layouts (might be 'anything but floating' - I know fullscreen does it) awesome and tilda will get into a fight about it's size, but I think that can be fixed in rc.lua by setting tilda to always float.
Offline
i'm using xsession for gdm
/usr/share/xsessions/xsession.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Xsession
Comment=oldschool
Exec=/etc/gdm/Xsession custom
ln -s .xinitrc .xsession
and
chmod +x .xsession
et voilà!
Offline
i'm using xsession for gdm
/usr/share/xsessions/xsession.desktop
[Desktop Entry] Encoding=UTF-8 Name=Xsession Comment=oldschool Exec=/etc/gdm/Xsession custom
Thanks a lot for this. I had wasted hours trying to get .xsession to work, and this line made my day.
Exec=/etc/gdm/Xsession custom
I wasn't adding custom to the Exec line and that was running the .Xclients script instead.
Offline