you write:
>Hello Rudolph,
>
>>>>>> "RTM" == Rudolph Todd Maceyko <rm55+@pitt.edu> writes:
> RTM>
> RTM> It would be nice if there were a way from within .ctwmrc to determine
> RTM> what version of ctwm you were using. That way, I could include some
> RTM> newer features in my .ctwmrc and still have it work on those machines
> RTM> were ctwm hasn't been updated yet.
> RTM>
>
>Well, there is at least one -- really not satisfying -- solution,
>right now in this state.
>
>You can check from within the ~/.xsession, or whatever your X
>Startup-Script is, the version of ctwm. Next you have to create an if
>then else, or maybe an case esac-construct to start ctwm with an
>appropriate startup-file (~/ctwmrc-old, ~/.ctwmrc-new, and so on).
>
>I don't like this either.
>
The best solution to tell which ctwm is running would be to add another
m4 variable that has the ctwm version. That way you could do something
like:
changequote([,])
ifelse(CTWMVER, [3.3], [
"F9"= :all :f.gotoworkspace "One"
] , [
ifelse(CTWMVER, [3.2p1], [
"F17"= :all :f.gotoworkspace "One"
] , [
"F11"= :all :f.gotoworkspace "One"
])
])
My biggest problem (other than being lazy) is that some of my ctwms are old
and don't have the -W option, so I can't disable the welcome message without
writing a complex if statement in my startup. I've got fewer platforms to
work on now, so I could probably do that now.
-Corey
This archive was generated by hypermail 2.1.2 : Sat Jun 22 2002 - 06:45:02 CEST