Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
coregarage
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
3
Snippets
Groups
Projects
Show more breadcrumbs
CuboCore
CoreApps
coregarage
Commits
c01c8263
Commit
c01c8263
authored
3 years ago
by
Marcus Britanicus
Browse files
Options
Downloads
Patches
Plain Diff
Automatically pick-up user's shell
parent
12287be6
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
settings.cpp
+9
-1
9 additions, 1 deletion
settings.cpp
with
9 additions
and
1 deletion
settings.cpp
+
9
−
1
View file @
c01c8263
...
...
@@ -34,6 +34,10 @@
#include
<cprime/themefunc.h>
#include
<cprime/filefunc.h>
#include
<sys/types.h>
// getpwuid()
#include
<pwd.h>
// getpwuid()
#include
<unistd.h>
// getuid()
#include
"settings.h"
settings
::
settings
()
...
...
@@ -104,7 +108,11 @@ void settings::setDefaultSettings()
cSetting
->
setValue
(
"CoreKeyboard/Font"
,
genFont
.
family
());
cSetting
->
setValue
(
"CoreTerminal/Font"
,
monoFont
);
cSetting
->
setValue
(
"CoreTerminal/Shell"
,
"/usr/bin/bash"
);
struct
passwd
*
pwent
;
pwent
=
getpwuid
(
getuid
());
cSetting
->
setValue
(
"CoreTerminal/Shell"
,
pwent
->
pw_shell
);
cSetting
->
setValue
(
"CoreTerminal/Opacity"
,
70
);
cSetting
->
setValue
(
"CoreTerminal/HistorySize"
,
500
);
cSetting
->
setValue
(
"CoreTerminal/KeyTab"
,
"linux"
);
...
...
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