mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Update auto-detection for Konqueror to include KDE 2 -- the kfm command is
gone; "konqueror" is the new name, and the command-line args are different. kfmclient has not changed, though.
This commit is contained in:
parent
4240bc50f6
commit
fc31f2692f
1 changed files with 5 additions and 2 deletions
|
|
@ -136,7 +136,7 @@ if os.environ.get("TERM") or os.environ.get("DISPLAY"):
|
||||||
register("mosaic", None, GenericBrowser("mosaic %s >/dev/null &"))
|
register("mosaic", None, GenericBrowser("mosaic %s >/dev/null &"))
|
||||||
|
|
||||||
# Konqueror/kfm, the KDE browser.
|
# Konqueror/kfm, the KDE browser.
|
||||||
if _iscommand("kfm"):
|
if _iscommand("kfm") or _iscommand("konqueror"):
|
||||||
class Konqueror:
|
class Konqueror:
|
||||||
"""Controller for the KDE File Manager (kfm, or Konqueror).
|
"""Controller for the KDE File Manager (kfm, or Konqueror).
|
||||||
|
|
||||||
|
|
@ -149,7 +149,10 @@ if os.environ.get("TERM") or os.environ.get("DISPLAY"):
|
||||||
rc = os.system(cmd)
|
rc = os.system(cmd)
|
||||||
if rc:
|
if rc:
|
||||||
import time
|
import time
|
||||||
os.system("kfm -d &")
|
if _iscommand("konqueror"):
|
||||||
|
os.system("konqueror --silent &")
|
||||||
|
else:
|
||||||
|
os.system("kfm -d &")
|
||||||
time.sleep(PROCESS_CREATION_DELAY)
|
time.sleep(PROCESS_CREATION_DELAY)
|
||||||
rc = os.system(cmd)
|
rc = os.system(cmd)
|
||||||
return not rc
|
return not rc
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue