Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gnome-keyring-yubikey-unlock
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Recolic
gnome-keyring-yubikey-unlock
Commits
01272e38
There was an error fetching the commit references. Please try again later.
Commit
01272e38
authored
3 years ago
by
Recolic K
Browse files
Options
Downloads
Patches
Plain Diff
optimize scripts
parent
5441e08e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+1
-1
1 addition, 1 deletion
README.md
unlock_keyrings.sh
+4
-3
4 additions, 3 deletions
unlock_keyrings.sh
with
5 additions
and
4 deletions
README.md
+
1
−
1
View file @
01272e38
...
...
@@ -48,7 +48,7 @@ gnome-keyring-yubikey-unlock/create_secret_file.sh /path/to/your_secret [Your Gn
# input your keyring:password
```
As an example, I need to input
`默认钥匙环:My_Very_Long_Login_Password`
.
As an example, I need to input
`默认钥匙环:My_Very_Long_Login_Password`
.
(You may use
`seahorse`
to determine the name of your keyring)
Then, add the following command to gnome-autostart. You should know how to auto-run a command after starting gnome.
...
...
This diff is collapsed.
Click to expand it.
unlock_keyrings.sh
+
4
−
3
View file @
01272e38
#!/bin/bash
# This script should be run after gnome being started.
_
my_path
=
"
$0
"
_
self_bin_name
=
"
$0
"
secret_file
=
"
$1
"
[[
"
$secret_file
"
=
''
]]
&&
echo
"Usage:
$0
<secret_file>"
&&
exit
1
...
...
@@ -15,10 +15,11 @@ function where_is_him () {
done
DIR
=
"
$(
cd
-P
"
$(
dirname
"
$SOURCE
"
)
"
&&
pwd
)
"
echo
-n
"
$DIR
"
}
}
function
where_am_i
()
{
where_is_him
"
$_my_path
"
_my_path
=
`
type
-p
${
_self_bin_name
}
`
[[
"
$_my_path
"
=
""
]]
&&
where_is_him
"
$_self_bin_name
"
||
where_is_him
"
$_my_path
"
}
cd
`
where_am_i
`
&&
...
...
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