LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-18-2014, 07:28 PM   #1
scarrs
Member
 
Registered: Sep 2013
Location: Thunder Bay, Ontario
Distribution: Slackware 14.1 x86_64
Posts: 38

Rep: Reputation: Disabled
Question gnome-classic xwmconfig


hi all...
I have a successfull dropline install on slackware64 and I am trying to add a "gnome-classic" entry to my xwmconfig. I found the following code somewhere on the net before but it doesn't work.

Code:
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/@LIBDIR@/X11/xinit/.Xresources
sysmodmap=/usr/@LIBDIR@/X11/xinit/.Xmodmap

# default session settings
GNOME_SESSION_SETTINGS=""

# We keep the GNOME menu templates separate from KDE so the two 
# don't interfere with each other. This path may be extended to 
# include the KDE menu path /etc/kde/xdg if the user wishes.
export XDG_CONFIG_DIRS=/etc/xdg:/etc/gnome/xdg

# Merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f $userresources ]; then
xrdb -merge $userresources
fi
if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi

# Use ssh-agent if available
if [ -x /usr/bin/ssh-agent ]; then
GNOME_SESSION_SETTINGS="$GNOME_SESSION_SETTINGS /usr/bin/ssh-agent"
fi;

# Use seahorse-agent if available from seahorse-plugins
if [ -x /usr/bin/seahorse-agent ]; then
GNOME_SESSION_SETTINGS="$GNOME_SESSION_SETTINGS /usr/bin/seahorse-agent --execute"
fi;

# Use ConsoleKit if available
if [ -z "${XDG_SESSION_COOKIE}" -a -x /usr/bin/ck-launch-session ]; then
CK_SESSION="/usr/bin/ck-launch-session"
fi;

# Start the window manager
exec $GNOME_SESSION_SETTINGS $CK_SESSION gnome-session --session=gnome-classic
can anyone give me some help?
 
Old 08-18-2014, 08:21 PM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2098Reputation: 2098Reputation: 2098Reputation: 2098Reputation: 2098Reputation: 2098Reputation: 2098Reputation: 2098Reputation: 2098Reputation: 2098Reputation: 2098
I'd start with just creating a gnome.xinitrc file and just manually switch it over by redoing the symlink. The xwmconfig isn't entirely perfect.
 
Old 08-19-2014, 06:10 AM   #3
saxa
Senior Member
 
Registered: Aug 2004
Location: Nova Gorica, Salvador
Distribution: Slackware
Posts: 1,259

Rep: Reputation: 303Reputation: 303Reputation: 303Reputation: 303
If I'm not wrong on gnome 3.10 there is no more classic mode, it was removed as far as I know. Not sure though. You can do use the tweak tool in gnome shell and recreate the classic mode with extensions.
 
Old 08-19-2014, 06:35 AM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,118

Rep: Reputation: Disabled
All you have to do is make sure you have a proper xinitrc.gnome file.

There's no need to change anything in /usr/sbin/xmconfig, that has been for ages and still is able to pick it if available:
Code:
# Add KDE as the first and default entry:
if [ -r $T_PX/etc/X11/xinit/xinitrc.kde ]; then
  echo "\"xinitrc.kde\" \"`gettext "KDE: K Desktop Environment"`\" \\" >> $TMP/tmpscript.sh
fi

# Then, we add GNOME:
if [ -r $T_PX/etc/X11/xinit/xinitrc.gnome ]; then
  echo "\"xinitrc.gnome\" \"`gettext "GNU Network Object Model Environment"`\" \\" >> $TMP/tmpscript.sh
fi

# Add XFce:
if [ -r $T_PX/etc/X11/xinit/xinitrc.xfce ]; then
  echo "\"xinitrc.xfce\" \"`gettext "The Cholesterol Free Desktop Environment"`\" \\" >> $TMP/tmpscript.sh
fi

# Add Enlightenment:
if [ -r $T_PX/etc/X11/xinit/xinitrc.e ]; then
  echo "\"xinitrc.e\" \"`gettext "Enlightenment"`\" \\" >> $TMP/tmpscript.sh
fi

# Add Fluxbox:
if [ -r $T_PX/etc/X11/xinit/xinitrc.fluxbox ]; then
  echo "\"xinitrc.fluxbox\" \"`gettext "The fluxbox window manager"`\" \\" >> $TMP/tmpscript.sh
fi

# Add Blackbox:
if [ -r $T_PX/etc/X11/xinit/xinitrc.blackbox ]; then
  echo "\"xinitrc.blackbox\" \"`gettext "The blackbox window manager"`\" \\" >> $TMP/tmpscript.sh
fi

# Add WindowMaker:
if [ -r $T_PX/etc/X11/xinit/xinitrc.wmaker ]; then
  echo "\"xinitrc.wmaker\" \"`gettext "WindowMaker"`\" \\" >> $TMP/tmpscript.sh
fi


# Add FVWM2:
if [ -r $T_PX/etc/X11/xinit/xinitrc.fvwm2 ]; then
  echo "\"xinitrc.fvwm2\" \"`gettext "F(?) Virtual Window Manager (version 2.xx)"`\" \\" >> $TMP/tmpscript.sh
fi

# Add FVWM95:
if [ -r $T_PX/etc/X11/xinit/xinitrc.fvwm95 ]; then
  echo "\"xinitrc.fvwm95\" \"`gettext "FVWM2 with a Windows look and feel"`\" \\" >> $TMP/tmpscript.sh
fi

# Add icewm:
if [ -r $T_PX/etc/X11/xinit/xinitrc.icewm ]; then
  echo "\"xinitrc.icewm\" \"`gettext "ICE Window Manager"`\" \\" >> $TMP/tmpscript.sh
fi

# Add sawfish:
if [ -r $T_PX/etc/X11/xinit/xinitrc.sawfish ]; then
  echo "\"xinitrc.sawfish\" \"`gettext "Sawfish without GNOME"`\" \\" >> $TMP/tmpscript.sh
fi

# Add twm:
if [ -r $T_PX/etc/X11/xinit/xinitrc.twm ]; then
  echo "\"xinitrc.twm\" \"`gettext "Tab Window Manager (very basic)"`\" \\" >> $TMP/tmpscript.sh
fi

# Add mwm:
if [ -r $T_PX/etc/X11/xinit/xinitrc.mwm ]; then
  echo "\"xinitrc.mwm\" \"`gettext "Motif WM"`\" \\" >> $TMP/tmpscript.sh
fi
As you see, xwmconfig is ready to host no less than 13 "registered" windows managers (and it's not difficult to edit that script to add more)

Also, you can add as many "non registered" WMs as you want to xwmconfig's menu if your provide relevant xinit.* files. You'll just miss the description then:
Code:
# Now, add support for the other window managers:
( cd $T_PX/etc/X11/xinit
  for file in xinitrc.* ; do
    if [ ! "$file" = "xinitrc.kde" -a ! "$file" = "xinitrc.gnome" \
      -a ! "$file" = "xinitrc.e" -a ! "$file" = "xinitrc.wmaker" \
      -a ! "$file" = "xinitrc.fvwm2" -a ! "$file" = "xinitrc.fvwm95" \
      -a ! "$file" = "xinitrc.icewm" -a ! "$file" = "xinitrc.twm" \
      -a ! "$file" = "xinitrc.mwm" -a ! "$file" = "xinitrc.xfce" \
      -a ! "$file" = "xinitrc.blackbox" -a ! "$file" = "xinitrc.fluxbox" \
      -a ! "$file" = "xinitrc.sawfish" ]; then
      echo "\"$file\" \"$file\" \\" >> $TMP/tmpscript.sh
    fi
  done
)
PS Sorry I mistakenly copied the code from Slint's internationalized xwmconfig. That doesn't change the logic at all though.

PPS xwmconfig is a sample of KISS design, applying the equation:

Less work for the maintainer + Easy adaptation by the user = Slackware

Last edited by Didier Spaier; 08-19-2014 at 07:12 AM. Reason: PPS added.
 
Old 08-19-2014, 03:47 PM   #5
scarrs
Member
 
Registered: Sep 2013
Location: Thunder Bay, Ontario
Distribution: Slackware 14.1 x86_64
Posts: 38

Original Poster
Rep: Reputation: Disabled
Thumbs up Rodger

Quote:
Originally Posted by saxa View Post
If I'm not wrong on gnome 3.10 there is no more classic mode, it was removed as far as I know. Not sure though. You can do use the tweak tool in gnome shell and recreate the classic mode with extensions.
Thanks, I'll give that a try as that makes sense as to why it won't work. I guess I had my hopes up because ubuntu sports a classic mode on another pc of mine.

I have many dropline questions... you game?

Last edited by scarrs; 08-19-2014 at 03:50 PM.
 
Old 08-19-2014, 04:41 PM   #6
saxa
Senior Member
 
Registered: Aug 2004
Location: Nova Gorica, Salvador
Distribution: Slackware
Posts: 1,259

Rep: Reputation: 303Reputation: 303Reputation: 303Reputation: 303
No problem, you can ask here or better yet in #dropline channel on irc.freenode.net . Remember, that i usually do idle there, but sometimes can take few days before i react .

Another welcome channel is the dropline-gnome-devel list.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: From GNOME 3 to GNOME Classic in 3 extensions, or why GNOME Classic has become redundant LXer Syndicated Linux News 1 06-06-2014 01:58 AM
Gnome Classic as a default Desktop cccc Debian 8 03-04-2012 12:21 PM
LXer: How To Change GNOME 3 (GNOME Shell Or Classic) GTK / Mutter / Metacity Theme LXer Syndicated Linux News 0 04-25-2011 04:00 PM
xwmconfig doesn't detect gnome chocloman Slackware 5 09-29-2005 05:47 PM
gnome and xwmconfig paul62 Slackware 1 09-20-2004 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration