Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
7f44caa1
authored
Feb 08, 2013
by
tarokkk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
laborgui: Added desktop file
parent
9a77d029
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
13 deletions
+29
-13
miscellaneous/laborclient/cloud.desktop
+9
-0
miscellaneous/laborclient/cloudgui/gui.py
+20
-13
No files found.
miscellaneous/laborclient/cloud.desktop
0 → 100644
View file @
7f44caa1
[Desktop Entry]
Version=0.1
Name=Cloud GUI
Comment=Tool to use IK Cloud
Exec=cloud
Icon=/usr/share/icons/cloud-gui.jpg
Terminal=false
Type=Application
Categories=Utility;Application;
miscellaneous/laborclient/cloudgui/gui.py
View file @
7f44caa1
...
@@ -60,6 +60,7 @@ class KeyGen:
...
@@ -60,6 +60,7 @@ class KeyGen:
class
Browser
:
class
Browser
:
version
=
"0.1"
version
=
"0.1"
mounted
=
False
neptun
=
""
neptun
=
""
host
=
""
host
=
""
private_key_file
=
""
private_key_file
=
""
...
@@ -129,6 +130,10 @@ class Browser:
...
@@ -129,6 +130,10 @@ class Browser:
connection
=
rdp
.
RDP
(
uri
)
connection
=
rdp
.
RDP
(
uri
)
Process
(
target
=
connection
.
connect
)
.
start
()
Process
(
target
=
connection
.
connect
)
.
start
()
return
True
return
True
elif
scheme
==
"cloudfile"
:
file_path
=
os
.
path
.
normpath
(
rest
)
subprocess
.
call
([
"xdg-open"
,
"file://"
+
self
.
folder
+
file_path
])
return
True
else
:
else
:
return
False
return
False
except
:
except
:
...
@@ -182,20 +187,22 @@ class Browser:
...
@@ -182,20 +187,22 @@ class Browser:
self
.
post_key
(
self
.
public_key_b64
)
self
.
post_key
(
self
.
public_key_b64
)
### Parse values and do mounting ###
### Parse values and do mounting ###
elif
uri
.
startswith
(
"https://cloud.ik.bme.hu/?"
):
elif
uri
.
startswith
(
"https://cloud.ik.bme.hu/?"
):
try
:
if
self
.
mounted
!=
True
:
uri
,
params
=
uri
.
split
(
'?'
,
1
)
values
=
params
.
split
(
'&'
)
for
p
in
values
:
key
,
value
=
p
.
split
(
'='
,
1
)
self
.
params
[
key
]
=
value
try
:
try
:
self
.
mount_sshfs_folder
()
uri
,
params
=
uri
.
split
(
'?'
,
1
)
except
Exception
as
e
:
values
=
params
.
split
(
'&'
)
print
e
for
p
in
values
:
except
:
key
,
value
=
p
.
split
(
'='
,
1
)
pass
self
.
params
[
key
]
=
value
finally
:
try
:
os
.
unlink
(
self
.
private_key_file
)
self
.
mount_sshfs_folder
()
except
Exception
as
e
:
print
e
self
.
mounted
=
True
except
:
pass
finally
:
os
.
unlink
(
self
.
private_key_file
)
return
True
return
True
def
main
(
self
):
def
main
(
self
):
gtk
.
main
()
gtk
.
main
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment