Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lipstick
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osak
lipstick
Commits
0248ae7d
Commit
0248ae7d
authored
10 years ago
by
Christopher
Browse files
Options
Downloads
Patches
Plain Diff
linuxparty.sh: auto detect GUI
parent
643ff9f7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/linuxparty.sh
+11
-1
11 additions, 1 deletion
scripts/linuxparty.sh
with
11 additions
and
1 deletion
scripts/linuxparty.sh
+
11
−
1
View file @
0248ae7d
...
...
@@ -4,8 +4,18 @@ set -e
#options for GUI are kdialog zenity none
if
[
-z
"
$GUI
"
]
;
then
echo
"
\$
GUI is not set. Auto detecting GUI..."
if
command
-v
zenity 2>&1
>
/dev/null
;
then
GUI
=
zenity
elif
command
-v
kdialog 2>&1
>
/dev/null
;
then
GUI
=
kdialog
else
GUI
=
none
fi
fi
echo
"Using GUI=
$GUI
."
if
[
"
$GUI
"
==
"none"
]
;
then
NOGUI
=
yes
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment