Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gnome-schedule
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
gnome-schedule
Commits
ff537b32
Commit
ff537b32
authored
Oct 01, 2008
by
Gaute Hope
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor..
svn path=/trunk/; revision=1099
parent
afe89dc8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
ChangeLog
ChangeLog
+4
-0
src/mainWindow.py
src/mainWindow.py
+8
-4
No files found.
ChangeLog
View file @
ff537b32
2008-10-01 Gaute Hope <eg@gaute.vetsj.com>
* Cleaned up the run function a bit more.. problem persists - can't take care of differencies between shells that don't act like they should.
2008-09-28 Gaute Hope <eg@gaute.vetsj.com>
* Attempt to fix bug 552964, rewrote 'run script' functions. deleting temporary files.
...
...
src/mainWindow.py
View file @
ff537b32
...
...
@@ -701,21 +701,25 @@ class main:
elif
self
.
schedule
.
get_type
()
==
"crontab"
:
script
=
self
.
schedule
.
parse
(
commands
)[
1
][
5
]
script
=
script
+
"
\n
echo "
+
_
(
"Press ENTER to continue and close this window."
)
+
"
\n
"
# left untranslated to protect against any 'translation attacks'..
script
=
script
+
"
\n
echo "
+
"Press ENTER to continue and close this window."
+
"
\n
"
script
=
script
+
"read
\n
exit
\n
"
tmp
.
write
(
script
)
tmp
.
flush
()
self
.
temp_files
.
append
((
tmp
,
path
))
execute
=
self
.
user_shell
+
" "
+
path
if
self
.
root
==
1
:
if
self
.
user
!=
"root"
:
execute
=
"su "
+
self
.
user
+
" -c
\"
"
+
self
.
user_shell
+
" "
+
path
os
.
chown
(
path
,
self
.
uid
,
self
.
gid
)
os
.
chmod
(
path
,
stat
.
S_IEXEC
|
stat
.
S_IREAD
)
tmp
.
flush
()
gnome
.
execute_terminal_shell
_fds
(
self
.
user_home_dir
,
execute
,
Tru
e
)
self
.
temp_files
.
append
((
tmp
,
path
))
gnome
.
execute_terminal_shell
(
self
.
user_home_dir
,
execut
e
)
except
Exception
,
ex
:
...
...
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