mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-09 18:47:16 -08:00
x11-misc/dsx: Remove last-rited pkg
Closes: https://bugs.gentoo.org/735514 Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -521,7 +521,6 @@ sci-biology/shrimp
|
||||
sci-misc/gato
|
||||
sci-physics/rivet
|
||||
sys-cluster/heartbeat
|
||||
x11-misc/dsx
|
||||
|
||||
# Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com> (2020-09-01)
|
||||
# Mismatched version (bug #695022). Masked to force upgrade to 2.0.4_pre20200306162733.
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit python-single-r1
|
||||
|
||||
DESCRIPTION="Command line selection of your X desktop environment"
|
||||
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ppc x86"
|
||||
IUSE=""
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
x11-apps/xinit"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_install() {
|
||||
python_newscript "${FILESDIR}/${P}" "${PN}"
|
||||
}
|
||||
@@ -1,72 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
# dsx is Mandrakesoft's Xtart modified to work with a Gentoo Linux system.
|
||||
# Gentoo doesn't use a wmsession.d directory, so we're going to accept the
|
||||
# /etc/X11/Sessions executables as our menu and our command parameters.
|
||||
# I also tried to increase the robustness of the entry checking and make the
|
||||
# error messages less condescending.
|
||||
# The 0 option for "no wm" was removed. I altered it to run option 1 instead.
|
||||
|
||||
### Original copyright / license message from Xtart... ###
|
||||
# This is an official linux-mandrake extension of the X windowing system for
|
||||
# the benefit of Declan Moriarty Copyright 2001 by civileme@mandrakesoft all
|
||||
# rights reserved. Use is hereby granted under the GNU General Publoic
|
||||
# License version 2 or any future version of said license at the user's option
|
||||
#
|
||||
# No Warranty of course.
|
||||
# This program is designed for those who want to work in concole and
|
||||
# occasionally boot into window managers or who want to avoid theme
|
||||
# persistence from one WM to another.
|
||||
################
|
||||
import sys
|
||||
import os
|
||||
import popen2
|
||||
import string
|
||||
import math
|
||||
def complain():
|
||||
print 'X initiation aborted on invalid selection.'
|
||||
sys.exit(0)
|
||||
return
|
||||
print
|
||||
print 'Welcome to the Desktop Selector for X'
|
||||
print
|
||||
fspc=os.path.expanduser('~')+'/'
|
||||
io=popen2.Popen3('ls /etc/X11/Sessions',1)
|
||||
L=io.fromchild.readlines()
|
||||
Sessions={}
|
||||
Sessionkeys=[]
|
||||
primekey=0
|
||||
for k in L:
|
||||
primekey+=1
|
||||
name=k[:-1]
|
||||
command='/etc/X11/Sessions/'+k[:-1]
|
||||
Sessions[primekey]=(name, command)
|
||||
Sessionkeys=Sessions.keys()
|
||||
Sessionkeys.sort()
|
||||
for j in Sessionkeys:
|
||||
if os.system('[ -x '+Sessions[j][1]+' ]') == 0:
|
||||
print j, Sessions[j][0]
|
||||
pass
|
||||
print
|
||||
sys.stdin.flush()
|
||||
s=raw_input('Enter the number of your desired desktop environment [1]: ')
|
||||
if len(s)==0:
|
||||
s='1'
|
||||
if s=='0':
|
||||
s='1'
|
||||
for j in range(len(s)):
|
||||
if string.find(string.digits,s[j]) == -1:
|
||||
print "'" + s[j] + "' isn't a digit."
|
||||
complain()
|
||||
if len(s)>int(math.log10(primekey))+1:
|
||||
print "That number is too big."
|
||||
complain()
|
||||
well=int(s)
|
||||
wellformed=Sessions.has_key(well)
|
||||
if wellformed:
|
||||
os.execvp('xinit',Sessions[well])
|
||||
else:
|
||||
print
|
||||
print 'Your selection was invalid.'
|
||||
print
|
||||
complain()
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>desktop-misc@gentoo.org</email>
|
||||
<name>Gentoo Desktop Miscellaneous Project</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user