Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
nvidia-patch
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
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
nanahira
nvidia-patch
Commits
b6c43219
Commit
b6c43219
authored
Aug 26, 2023
by
Jai Luthra
Committed by
GitHub
Aug 26, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #693 from neromaverick/fix/flatpack-user-context
Fixed flatpak driver installed in user context not found
parents
4066f290
ac20b275
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
patch-fbc.sh
patch-fbc.sh
+4
-0
patch.sh
patch.sh
+4
-0
No files found.
patch-fbc.sh
View file @
b6c43219
...
...
@@ -312,8 +312,12 @@ check_version_supported () {
get_flatpak_driver_path
()
{
# Flatpak's package versioning replaces '.' by '-'
version
=
"
$(
echo
"
$1
"
|
tr
'.'
'-'
)
"
# Attempts to patch system flatpak
if
path
=
$(
flatpak info
--show-location
"org.freedesktop.Platform.GL.nvidia-
${
version
}
"
2>/dev/null
)
;
then
echo
"
$path
/files/lib"
# If it isn't found will login as the user that envoked sudo & patch this version
elif
path
=
$(
su
-c
-
${
SUDO_USER
}
'flatpak info --show-location "org.freedesktop.Platform.GL.nvidia-'
${
version
}
'"'
)
;
then
echo
"
$path
/files/lib"
fi
}
...
...
patch.sh
View file @
b6c43219
...
...
@@ -388,8 +388,12 @@ check_version_supported () {
get_flatpak_driver_path
()
{
# Flatpak's package versioning replaces '.' by '-'
version
=
"
$(
echo
"
$1
"
|
tr
'.'
'-'
)
"
# Attempts to patch system flatpak
if
path
=
$(
flatpak info
--show-location
"org.freedesktop.Platform.GL.nvidia-
${
version
}
"
2>/dev/null
)
;
then
echo
"
$path
/files/lib"
# If it isn't found will login as the user that envoked sudo & patch this version
elif
path
=
$(
su
-c
-
${
SUDO_USER
}
'flatpak info --show-location "org.freedesktop.Platform.GL.nvidia-'
${
version
}
'"'
)
;
then
echo
"
$path
/files/lib"
fi
}
...
...
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