Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kde-3.3.0 - über X Scripte ausführen
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
benjamin200
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1426
Location: DE Munich

PostPosted: Sun Sep 19, 2004 7:24 pm    Post subject: kde-3.3.0 - über X Scripte ausführen Reply with quote

Hi Leute,

habe vor kurzem noch die Release 3.2.3 auf meinem Gentoo System am laufen gehabt. Auf meinem Desktop unter KDE hatte ich einen Symbole Linke zu file:/usr/local/netscape/netscape und konnte Netscape per Mausklick (klicki klicki) starten.

Sobald ich nun aber die KDE Release 3.3.0 starte funktioniert dies nicht mehr. Er führt die Datei einfach nicht aus. Stattdesen öffnet KDE das Script mit KWrite.

Die bis jetzt einzige Lösung ist über die Konsole zu gehen:
Code:

# cd file:/usr/local/netscape
# ./netscape


Kann mir jemand erklären was das mit dem Update auf die neue KDE Release zu tun haben könnte? Wenn ich die alten 3.2.3 Session starte klappt alles wie gewohnt. Bin über jeden Hinweis dankbar.

Gruß,
Benjamin
_________________
Gentoo Linux Stage1 / Kernel 2.6.18
AMD Athlon64 3500+ on Asus A8N-E / 1024 MB DDR-RAM / ATI X700 PCIe
Take LINUX and forget Blue Screens
Back to top
View user's profile Send private message
_hephaistos_
Advocate
Advocate


Joined: 07 Apr 2004
Posts: 2694
Location: salzburg, austria

PostPosted: Sun Sep 19, 2004 7:26 pm    Post subject: Re: kde-3.3.0 - über X Scripte ausführen Reply with quote

hi,

rechte maustaste klick auf den desktop: create new -> file -> link to application

das is dann eh selbsterklärend.

hth,
ciao
Back to top
View user's profile Send private message
benjamin200
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1426
Location: DE Munich

PostPosted: Sun Sep 19, 2004 7:47 pm    Post subject: Reply with quote

hephaistos6 wrote:
Quote:

rechte maustaste klick auf den desktop: create new -> file -> link to application
das is dann eh selbsterklärend.

Danke für den Hinweis. Auf diese Art und Weise kann ich das Programm Netscape wieder über Mausklick ausführen. Aber was mich doch noch brennend interessieren würde, wieso ich als User von KDE im Verzeichniss /usr/local/netscape das Script "netscape" nicht wie in Version 3.2.3 über Mausklick ausführen kann. Es startet immer KWrite, obwohl die Dateneigenenschaften genau so aussehen. Hat keiner diesen Phänomen/Problem beim Upgrade auf die neue Version bemerkt?

Gruß,
Benjamin
_________________
Gentoo Linux Stage1 / Kernel 2.6.18
AMD Athlon64 3500+ on Asus A8N-E / 1024 MB DDR-RAM / ATI X700 PCIe
Take LINUX and forget Blue Screens
Back to top
View user's profile Send private message
benjamin200
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1426
Location: DE Munich

PostPosted: Thu Sep 23, 2004 7:13 pm    Post subject: Reply with quote

Habe zwischen zeitlich herausbekommen dass das ausführen des netscape start scriptes in /usr/local/netscape als user "root" einwandfrei funktioniert. Ebenso wenn ich eine einfache Verknüpfung der Datei auf den Desktop zieh.

Sobald ich aber mit einem User Account darauf klicke startet KWrite das Scipt. Bis jetzt einzige Lösung "Link to Application" anlegen. Hat jemand ne Idee wieso es bei User "root" wie gewohnt unter KDE-3.3 funktioniert? Könnte das was mit den Benutzereinstellungen zu tun haben? Bin über jeden Hinweis / Tipp dankbar.


Beste Grüße
Benjamin
_________________
Gentoo Linux Stage1 / Kernel 2.6.18
AMD Athlon64 3500+ on Asus A8N-E / 1024 MB DDR-RAM / ATI X700 PCIe
Take LINUX and forget Blue Screens
Back to top
View user's profile Send private message
Deever
Veteran
Veteran


Joined: 06 Jul 2002
Posts: 1354
Location: Zürich / Switzerland

PostPosted: Thu Sep 23, 2004 7:49 pm    Post subject: Reply with quote

1. Ist /usr/local/netscape/netscape ein Shellskript?
2. Ist die Datei, auf die du klickst, ein *.desktop File?

Gruß,
/dev
Back to top
View user's profile Send private message
benjamin200
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1426
Location: DE Munich

PostPosted: Thu Sep 23, 2004 7:53 pm    Post subject: Reply with quote

Hallo Dev,

zu 1)
ja laut KDE ist der Datentyp "Shell-Skript"

zu 2)
wenn ich die File auf /usr/local/netscape/netscape anklicke ist es ein "Shell-Skript".
auf dem Desktop habe ich einen Link. Laut KDE Datentyp Verknüpfung zu Shell-Skript.


Eigenartig finde ich es das es unter dem ROOT Account wunderbar funktioniert. Unter der alten Release 3.2.3 ging dies auch mit den normalen Usern. Ab Release 3.3 starte jedoch immer KWrite.


Gruß
Benjamin
_________________
Gentoo Linux Stage1 / Kernel 2.6.18
AMD Athlon64 3500+ on Asus A8N-E / 1024 MB DDR-RAM / ATI X700 PCIe
Take LINUX and forget Blue Screens
Back to top
View user's profile Send private message
Deever
Veteran
Veteran


Joined: 06 Jul 2002
Posts: 1354
Location: Zürich / Switzerland

PostPosted: Thu Sep 23, 2004 8:17 pm    Post subject: Reply with quote

benjamin200 wrote:
zu 1)
ja laut KDE ist der Datentyp "Shell-Skript"

zu 2)
wenn ich die File auf /usr/local/netscape/netscape anklicke ist es ein "Shell-Skript".
auf dem Desktop habe ich einen Link. Laut KDE Datentyp Verknüpfung zu Shell-Skript.

Ich meinte nicht, was KDE dir anzeigt.

Quote:
Eigenartig finde ich es das es unter dem ROOT Account wunderbar funktioniert. Unter der alten Release 3.2.3 ging dies auch mit den normalen Usern. Ab Release 3.3 starte jedoch immer KWrite.

Vermutung: Dateizuordnung ist falsch/unbeabsichtigt.

HTH!
/dev
Back to top
View user's profile Send private message
benjamin200
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1426
Location: DE Munich

PostPosted: Thu Sep 23, 2004 8:19 pm    Post subject: Reply with quote

Dever wrote:
Quote:

Ich meinte nicht, was KDE dir anzeigt.


Ist das genauer?
Code:

-rwxr-xr-x  1 root root    4221 Aug  5 11:25 netscape

_________________
Gentoo Linux Stage1 / Kernel 2.6.18
AMD Athlon64 3500+ on Asus A8N-E / 1024 MB DDR-RAM / ATI X700 PCIe
Take LINUX and forget Blue Screens
Back to top
View user's profile Send private message
Deever
Veteran
Veteran


Joined: 06 Jul 2002
Posts: 1354
Location: Zürich / Switzerland

PostPosted: Thu Sep 23, 2004 8:26 pm    Post subject: Reply with quote

benjamin200 wrote:
Ist das genauer?
Code:

-rwxr-xr-x  1 root root    4221 Aug  5 11:25 netscape

Nicht wirklich. Das kann irgendeine ausführbare Datei sein. Aber ist es ein Shellskript?
Und liegt das Problem jetzt an der Dateizuordnung?
Back to top
View user's profile Send private message
benjamin200
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1426
Location: DE Munich

PostPosted: Thu Sep 23, 2004 8:37 pm    Post subject: Reply with quote

Deever wrote:
Quote:

Nicht wirklich. Das kann irgendeine ausführbare Datei sein. Aber ist es ein Shellskript?


Inhalt der Datei "netscape:
Code:

bash-2.05b$ more /usr/local/netscape/netscape
#!/bin/sh
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL.  You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation.  Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation.  All Rights
# Reserved.
#

## $Id: mozilla.in,v 1.6 2004/02/20 18:13:46 pkw%us.ibm.com Exp $
##
## Usage:
##
## $ mozilla [args]
##
## This script is meant to run the netscape-bin binary from either
## mozilla/xpfe/bootstrap or mozilla/dist/bin.
##
## The script will setup all the environment voodoo needed to make
## the netscape-bin binary to work.
##

moz_pis_startstop_scripts()
{
  MOZ_USER_DIR=".mozilla"
  # MOZ_PIS_ is the name space for "Mozilla Plugable Init Scripts"
  # These variables and there meaning are specified in
  # mozilla/xpfe/bootstrap/init.d/README
  MOZ_PIS_API=2
  MOZ_PIS_MOZBINDIR="${dist_bin}"
  MOZ_PIS_SESSION_PID="$$"
  MOZ_PIS_USER_DIR="${MOZ_USER_DIR}"
  export MOZ_PIS_API MOZ_PIS_MOZBINDIR MOZ_PIS_SESSION_PID MOZ_PIS_USER_DIR

  case "${1}" in
    "start")
      for curr_pis in "${dist_bin}/init.d"/S* "${HOME}/${MOZ_USER_DIR}/init.d"/S* ; do
        if [ -x "${curr_pis}" ] ; then
          case "${curr_pis}" in
            *.sh) .  "${curr_pis}"         ;;
            *)       "${curr_pis}" "start" ;;
          esac
        fi
      done
      ;;
    "stop")
      for curr_pis in "${HOME}/${MOZ_USER_DIR}/init.d"/K* "${dist_bin}/init.d"/K* ; do
        if [ -x "${curr_pis}" ] ; then
          case "${curr_pis}" in
            *.sh) . "${curr_pis}"        ;;
            *)      "${curr_pis}" "stop" ;;
          esac
        fi
      done
      ;;
    *)
      echo 1>&2 "$0: Internal error in moz_pis_startstop_scripts."
      exit 1
      ;;
  esac
}

#uncomment for debugging
#set -x

moz_libdir=/usr/local/lib/mozilla-1.7.2
MRE_HOME=/usr/local/lib/mre/mre-1.7.2

# honor MOZILLA_FIVE_HOME if it's there
if [ -n "$MOZILLA_FIVE_HOME" ] ; then
  dist_bin="$MOZILLA_FIVE_HOME"
else
  # Use run-mozilla.sh in the current dir if it exists
  # If not, then start resolving symlinks until we find run-mozilla.sh
  found=0
  progname=$0
  curdir=`dirname "$progname"`
  run_moz="$curdir/run-mozilla.sh"
  if test -x "$run_moz"; then
    dist_bin=$curdir
    found=1
  else
    here=`/bin/pwd`
    while [ -h "$progname" ]; do
      bn=`basename "$progname"`
      cd `dirname "$progname"`
      progname=`/bin/ls -l "$bn" |sed -e 's/^.* -> //' `
      if [ ! -x "$progname" ]; then
        break
      fi
      curdir=`dirname "$progname"`
      run_moz="$curdir/run-mozilla.sh"
      if [ -x "$run_moz" ]; then
        cd "$curdir"
        dist_bin=`pwd`
        found=1
        break
      fi
    done
    cd "$here"
  fi
  if [ $found = 0 ]; then
    # Check default compile-time libdir
    if [ -x "$moz_libdir/run-mozilla.sh" ]; then
      dist_bin=$moz_libdir
    else
      echo "Cannot find mozilla runtime directory. Exiting."
      exit 1
    fi
  fi
fi

script_args=""
moreargs=""
debugging=0
MOZILLA_BIN="netscape-bin"

if [ "$OSTYPE" = "beos" ]; then
  mimeset -F $MOZILLA_BIN
fi

while [ $# -gt 0 ]
do
  case "$1" in
    -p | -pure)
      MOZILLA_BIN="netscape-bin.pure"
      shift
      ;;
    -g | --debug)
      script_args="$script_args -g"
      debugging=1
      shift
      ;;
    -d | --debugger)
      script_args="$script_args -d $2"
      shift 2
      ;;
    *)
      moreargs="$moreargs \"$1\""
      shift 1
      ;;
  esac
done

export MRE_HOME
eval "set -- $moreargs"

## Start addon scripts
moz_pis_startstop_scripts "start"

if [ $debugging = 1 ]
then
  echo $dist_bin/run-mozilla.sh $script_args $dist_bin/$MOZILLA_BIN "$@"
fi
"$dist_bin/run-mozilla.sh" $script_args "$dist_bin/$MOZILLA_BIN" "$@"
exitcode=$?

## Stop addon scripts
moz_pis_startstop_scripts "stop"

exit $exitcode
# EOF.


Deever wrote:
Quote:

Und liegt das Problem jetzt an der Dateizuordnung?

Laut KDE Dateieigenschaften sind die Dateizuordnungen identisch. Aber root führt das File aus --> User starten KWrite. Ich verstehe es nicht.

Gruß
Benjamin
_________________
Gentoo Linux Stage1 / Kernel 2.6.18
AMD Athlon64 3500+ on Asus A8N-E / 1024 MB DDR-RAM / ATI X700 PCIe
Take LINUX and forget Blue Screens
Back to top
View user's profile Send private message
Deever
Veteran
Veteran


Joined: 06 Jul 2002
Posts: 1354
Location: Zürich / Switzerland

PostPosted: Thu Sep 23, 2004 9:03 pm    Post subject: Reply with quote

benjamin200 wrote:
Inhalt der Datei "netscape:
Code:

bash-2.05b$ more /usr/local/netscape/netscape
#!/bin/sh
[schnipp]

Die erste Zeile hätte gereicht...

Quote:

Laut KDE Dateieigenschaften sind die Dateizuordnungen identisch. Aber root führt das File aus --> User starten KWrite. Ich verstehe es nicht.

Dann schau noch mal beim Reiter "Embedding" ("Einbetten"?) nach, da könnte noch was verkehrt sein.

HTH!
/dev
Back to top
View user's profile Send private message
benjamin200
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1426
Location: DE Munich

PostPosted: Thu Sep 23, 2004 9:13 pm    Post subject: Reply with quote

Deever wrote:
Quote:

Dann schau noch mal beim Reiter "Embedding" ("Einbetten"?) nach, da könnte noch was verkehrt sein.

Keine Abweichung zuerkennen. Scheint komplett Identisch zu sein. Trotzdem startet immer KWrite. Kann ich die Datenzuordnung von ROOT zu meinem USER kopieren?


Gruß,
Benjamin
_________________
Gentoo Linux Stage1 / Kernel 2.6.18
AMD Athlon64 3500+ on Asus A8N-E / 1024 MB DDR-RAM / ATI X700 PCIe
Take LINUX and forget Blue Screens
Back to top
View user's profile Send private message
Neo_0815
l33t
l33t


Joined: 24 Feb 2003
Posts: 815
Location: Leipzig

PostPosted: Thu Sep 23, 2004 10:20 pm    Post subject: Reply with quote

Btw:

Code:


file netscape



hätte für den Filetyp sehr geholfen ^^.

MfG
_________________
[img:76661e22b8]http://www.biersekte.de/biersektebanner.gif[/img:76661e22b8]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum