WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: flwm: logout calls /usr/bin/exittc even I have /usr/local/bin/exittc  (Read 4327 times)

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
dCore user

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: flwm: logout calls /usr/bin/exittc even I have /usr/local/bin/exittc
« Reply #1 on: October 22, 2009, 01:31:17 AM »
/usr/local  must be a link, so that makes sense

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: flwm: logout calls /usr/bin/exittc even I have /usr/local/bin/exittc
« Reply #2 on: October 22, 2009, 04:55:21 AM »
Sorry?
/usr/local  must be a link, so that makes sense
If I use openbox instead of flwm there are no problems.
When I click logout on the openbox menu /usr/local/bin/exittc shows up, if I delete it, the base exittc is called, this how also flwm should work
dCore user

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: flwm: logout calls /usr/bin/exittc even I have /usr/local/bin/exittc
« Reply #3 on: October 22, 2009, 02:57:10 PM »
oh..translation or something, sorry.

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: flwm: logout calls /usr/bin/exittc even I have /usr/local/bin/exittc
« Reply #4 on: October 22, 2009, 03:03:11 PM »
translations
dCore user

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: flwm: logout calls /usr/bin/exittc even I have /usr/local/bin/exittc
« Reply #5 on: October 22, 2009, 04:44:40 PM »
just tried /usr/local/bin/testit , /usr/bin/testit in flwm and /usr/local/bin overrides.  $PATH has /usr/local first?

Edit: same with /usr/local/bin/exittc, /usr/bin/exittc; /usr/local overrides


Make sure your  permissions are set correctly. 
« Last Edit: October 22, 2009, 04:56:31 PM by jpeters »

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: flwm: logout calls /usr/bin/exittc even I have /usr/local/bin/exittc
« Reply #6 on: October 22, 2009, 07:15:25 PM »
I think what jls is writing about is:
Menu.C:    execl("/usr/bin/exittc","exittc");
In flwm source.

I typically use full paths so as to avoid needless searching, especially when a Core system is loaded up the command that I want will be last in the search path.

Couldn't a startup script achieve overwriting of those core elements that have a translation?
« Last Edit: October 22, 2009, 07:19:00 PM by roberts »
10+ Years Contributing to Linux Open Source Projects.

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: flwm: logout calls /usr/bin/exittc even I have /usr/local/bin/exittc
« Reply #7 on: October 23, 2009, 04:27:13 AM »
the philosophy behind linux and windows says that we have a search path, and u cannot go against this.
We don't use logout every 5 minutes.
I've tried do override the original programs in /usr/bin with the translated ones, using the startup script, but I failed. I tried mv cp and rsync but nothing, maybe someone could help me.

[^thehatsrule^: spam removed: sorry, it is]
« Last Edit: November 17, 2009, 08:24:55 PM by ^thehatsrule^ »
dCore user

Offline mikshaw

  • Sr. Member
  • ****
  • Posts: 368
Re: flwm: logout calls /usr/bin/exittc even I have /usr/local/bin/exittc
« Reply #8 on: October 23, 2009, 10:02:37 AM »
I'm in agreement with jls
Not only does it help with translations (I know nothing about them; just going by what I've read here), but it is common practice to have executables in /usr/bin be overridden by same filename in /usr/local/bin.  This gives the admin greater freedom to add and replace commands without disturbing the base system.

As far as I can tell, full paths to executables are typically used only by root (such as during init, before PATH is set), and user commands typically rely on PATH to allow the user to override system commands without needing root permission (such as replacing commands by adding them to a bin directory in $HOME or by using aliases).

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: flwm: logout calls /usr/bin/exittc even I have /usr/local/bin/exittc
« Reply #9 on: October 23, 2009, 02:56:34 PM »
What you both fail to acknowledge is that user commands are typically at the end of the search path.
It is a trivial change and I will do so to accomodate the language translation that jls has been providing.
10+ Years Contributing to Linux Open Source Projects.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: flwm: logout calls /usr/bin/exittc even I have /usr/local/bin/exittc
« Reply #10 on: October 23, 2009, 07:24:36 PM »
Done.
10+ Years Contributing to Linux Open Source Projects.

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: flwm: logout calls /usr/bin/exittc even I have /usr/local/bin/exittc
« Reply #11 on: October 24, 2009, 04:26:51 AM »
sorry roberts to make u work more then your health permits.
While I was trin' to sleep yesterday, I thought more about my request and I changed my mind, but I was lazy to go back to the pc, also cause I'm injured this days, and now I see it's already late, u've already done the job.
I was thinking that for a more complete translation I should modify the flwm source code translating the default menu and since I'm there I could myself change the line that calls exittc.
« Last Edit: October 24, 2009, 08:28:08 AM by jls_legalize »
dCore user

Offline mikshaw

  • Sr. Member
  • ****
  • Posts: 368
Re: flwm: logout calls /usr/bin/exittc even I have /usr/local/bin/exittc
« Reply #12 on: October 24, 2009, 08:17:05 AM »
Quote from: roberts
user commands are typically at the end of the search path.

/etc/skel/.profile:
Code: [Select]
if [ -d "$HOME/.local/bin" ] ; then
PATH=$HOME/.local/bin:$PATH
export PATH
fi

This isn't a very recent version, but if it hasn't changed it looks like user commands are at the start of PATH.  Maybe I misunderstood what you said.

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: flwm: logout calls /usr/bin/exittc even I have /usr/local/bin/exittc
« Reply #13 on: March 04, 2010, 06:40:52 AM »
I see again executables in the cpanel called with full path
dCore user

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: flwm: logout calls /usr/bin/exittc even I have /usr/local/bin/exittc
« Reply #14 on: March 07, 2010, 11:49:25 AM »
Old habits are sometimes hard to break. Full path is faster than searching several paths, but I know that your language extension requires such. I have removed full paths from cpanel for next cut.
10+ Years Contributing to Linux Open Source Projects.