Package Details: netctltray 0.2-1

Package Base: netctltray
Description: Tray icon to switch netctl profiles.
Upstream URL: https://github.com/dopefishh/netctl-tray
Category: network
Licenses: custom
Submitter: dopefishh
Maintainer: dopefishh
Last Packager: dopefishh
Votes: 1
First Submitted: 2015-02-12 12:29
Last Updated: 2015-03-02 11:55

Dependencies (4)

Required by (0)

Sources

Latest Comments

Comment by dopefishh

2015-06-28 18:41

Hey f3bruary,
Thanks for the feedback. You shouldn't run the application with super user rights. The program wil issue a sudo command and prompt for said password when necessary. This command can be changed with the -S flag
By default this is 'sudo -A' which will spawn a ssh-askpass prompt.

Comment by f3bruary

2015-06-28 13:34

X Error: BadAccess (attempt to access private resource denied) 10
Extension: 130 (MIT-SHM)
Minor opcode: 1 (X_ShmAttach)
Resource id: 0x168
X Error: BadShmSeg (invalid shared segment parameter) 128
Extension: 130 (MIT-SHM)
Minor opcode: 5 (X_ShmCreatePixmap)
Resource id: 0xd5
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
Major opcode: 62 (X_CopyArea)
Resource id: 0x2000029

If I understand correct, this is because sudo isn't meant for graphical apps. How else am I supposed to run this ? Regular user doesn't have permission.

Comment by dopefishh

2015-03-01 20:31

Aw, forgot to list pyside as a dependency. Will fix this tomorrow. To fix the problem now you can install python-pyside at it should be fixed.

Best,
Mart

Comment by Mex

2015-02-28 20:58

Traceback (most recent call last):
File "/usr/bin/netctltray", line 3, in <module>
from PySide import QtGui
ImportError: No module named 'PySide'

Comment by cokomoko

2015-02-14 19:04

This problem is solved,thanks.

Comment by dopefishh

2015-02-13 17:59

SVG resources are searched for in /opt/netctltray when the program is runs from /usr/bin. Otherwise the program looks in the current directory. I have no clue why the program is linked to /usr/sbin too. I fixed the problem with the new release that I will upload in a minute.

I advise you not to run the program with super user rights, only the netctl commands are prefixed(by default with 'sudo -A' but this can be set via the -S flag.

Thanks for the feedback!!

Comment by cokomoko

2015-02-13 15:54

icon.svg and check.svg problem:

sudo netctltray
[sudo] password for cokomoko:
Cannot open file '/usr/sbin/check.svg', because: No such file or directory
Cannot open file '/usr/sbin/check.svg', because: No such file or directory
Cannot open file '/usr/sbin/icon.svg', because: No such file or directory
Cannot open file '/usr/sbin/icon.svg', because: No such file or directory
Traceback (most recent call last):
File "/usr/sbin/netctltray", line 45, in sig_triggered
self.tray.show_status()
File "/usr/sbin/netctltray", line 84, in show_status
status = list(netctl.get_statussus())
File "/opt/netctltray/netctl.py", line 72, in get_statussus
ip = ips['inet6'] if prefer_ipv6 and 'inet6' in ips else ips['inet']
KeyError: 'inet'